Skip to Content
Hands-On RESTful Python Web Services - Second Edition
book

Hands-On RESTful Python Web Services - Second Edition

by Gastón C. Hillar
December 2018
Intermediate to advanced
500 pages
12h 33m
English
Packt Publishing
Content preview from Hands-On RESTful Python Web Services - Second Edition

Test your knowledge

Let's see whether you can answer the following questions correctly:

  1. Which of the following fixtures provided by the pytest-django plugin allow us to access the APIClient instance that makes it easy for us to compose and send HTTP requests for testing?
    1. client
    2. api_client
    3. http
  1. Which of the following decorators declared in pytest-django indicate that a test function needs to work with the test database?
    1. @pytest.django.db
    2. @pytest.mark.django_db
    3. @pytest.mark.db
  1. The ScopedRateThrottle class:
    1. Limits the rate of requests that a specific user can make
    2. Limits the rate of requests for specific parts of the API identified with the value assigned to the throttle_scope property
    3. Limits the rate of requests that an anonymous ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building RESTful Python Web Services

Building RESTful Python Web Services

Gastón C. Hillar
Python Command Line Tools

Python Command Line Tools

Alfredo Deza, Noah Gift

Publisher Resources

ISBN: 9781789532227Supplemental Content