All test methods must receive client as an argument,
otherwise the database variable won't be configured correctly
At the beginning of every test file we have the above.
Can anyone explain in more detail what it means.
- What database variable is it refering to? I don’t see any database variable. These test files are just importing and running functions we implemented in db.py
- What does configure correctly mean? Whats the expected, and actual behaviour? Is there some undesired default config going on when the test methods don’t receive
client
argument? - Where did this
client
come from? I thought it was a fixture, but i can’t find any fixture namedclient
. There was onlydef app():
under@pytest.fixture