问题
I'm learning to write tests with tox. How do the arguments are being passed to test functions in tox/py.test? For example in test_simple_backup_generation
from tests/test_backup_cmd.py
of django-backup
extension there are three arguments tmpdir
, settings
, db
. I don't have any idea where they came from. It's nothing said about this in tox documentation either.
回答1:
These are pytest fixtures provided by pytest-django and pytest itself.
来源:https://stackoverflow.com/questions/39018056/how-do-the-arguments-are-being-passed-to-test-functions-in-tox-py-test