I am trying to run python tests using coverage. However, when I try to run the command, the following error appears:
$ python3 manage.py test Creating test database for alias 'default'... /workspace/.pip-modules/lib/python3.8/site-packages/django/db/backends/postgresql/base.py:304: RuntimeWarning: Normally Django will use a connection to the 'postgres' database to avoid running initialization queries against the production database when it's not needed (for example, when running tests). Django was unable to create a connection to the 'postgres' database and will use the first PostgreSQL database instead. warnings.warn( Got an error creating the test database: permission denied to create database
I am currently connect a PostgreSQL db from ElephantSQL. Project is mainy django3.2.18 and using python3.8.
I have check db connections and everything seems fine, I'm not sure what permission is needed.
I expected a htmlcov folder to be created so I can view what testing remains. And view this using the command python3 -m http.server