Related: #2881
Currently open event uses SQLite database for testing (both locally and on Travis). This approach has a number of problems.
To do this, minor changes will be required in the code and documentation. The changes are working fine so far in my local system.
@aviaryan locally you can run it on postgreSQL. I am myself running it locally on postgreSQL. You can see the documentation for setting it up locally which does mention using postgreSQL. The issue isn't clear to me.
@SaptakS I think you missed my point here. I am talking about unit testing, not running.
@aviaryan we are already using Postgres in testing
Okay ... Looks like testing config is overriding the env at tests/unittests/setup_database.py .. So, just that line should be changed
@niranjan94 It may seem like that but setup_database.py which is responsible for testing application has DATABASE_URL hard-coded. So in reality, SQLite is being used.
@aviaryan @niranjan94 yeah it needs to changed for the unittesting environment. True.
Working on this now. Unfortunately it's not being as simple as changing one line. Some tests are failing. I will send a PR after I fix everything.
Most helpful comment
Okay ... Looks like testing config is overriding the env at
tests/unittests/setup_database.py.. So, just that line should be changed