[Answered ]-Understanding pytest-django test arguments

1👍

Both are pytest fixtures (read about fixtures here: About fixtures). rf is defined in pytest-django (reference); a RequestFactory instance will be automatically injected for the rf argument in test. users_context is a fixture defined somewhere in your test project; search for something like

@pytest.fixture
def users_context():
    ...

in project code.

Leave a comment