Let's see whether you can answer the following questions correctly:
- Which of the following fixtures provided by the
pytest-django
plugin allow us to access theAPIClient
instance that makes it easy for us to compose and send HTTP requests for testing?client
api_client
http
- Which of the following decorators declared in
pytest-django
indicate that a test function needs to work with the test database?@pytest.django.db
@pytest.mark.django_db
@pytest.mark.db
- The
ScopedRateThrottle
class:- Limits the rate of requests that a specific user can make
- Limits the rate of requests for specific parts of the API identified with the value assigned to the
throttle_scope
property - Limits the rate of requests that an anonymous user can make
- The
UserRateThrottle
class:- Limits the rate of requests that a specific user can make
- Limits the rate of requests for specific parts of the API identified with the value assigned to the
throttle_scope
property - Limits the rate of requests that an anonymous user can...