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. Pytest makes it easy to declare a test fixture function by marking a function with which of the following decorators?:
    1. @pytest.fixture_function
    2. @pytest.test_fixture
    3. @pytest.fixture
  1. By default, pytest discovers and executes functions as text functions when they start with which of the following prefixes?:
    1. test
    2. test_
    3. test-
  1. Which of the following commands displays the line numbers of the missing statements in the Missing column for a coverage report?:
    1. coverage report -m
    2. coverage report missing
    3. coverage -missing
  1. Pytest is a very popular Python:
    1. Unit test framework that makes testing easy and reduces boilerplate code
    2. WSGI server that we can ...
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