Falcon v1.2.0 DocumentationResources Testing your application Request and Response Objects Refactoring for testability Functional tests Serving Images Introducing Hooks Error Handling What Now? Introduction Falcon is a minimalist, high-performance then running pytest: $ cd falcon $ pip install -r tools/test-requires $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip See also the tox.ini [https://github.com/falc application. Let’s take a moment to write a test for what’s been implemented so far. First, create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should0 码力 | 177 页 | 252.56 KB | 1 年前3
Falcon v1.2.0 DocumentationDocumentation, Release 1.2.0 $ cd falcon $ pip install -r tools/test-requires $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list of available application. Let’s take a moment to write a test for what’s been implemented so far. First, create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should look | - __init__.py | - app.py | - images.py - tests - __init__.py - test_app.py Falcon supports testing its API object by simulating HTTP requests. Tests can either be written using Python’s standard0 码力 | 134 页 | 498.46 KB | 1 年前3
Falcon v1.3.0 DocumentationResources Testing your application Request and Response Objects Refactoring for testability Functional tests Serving Images Introducing Hooks Error Handling What Now? FAQ Why doesn’t Falcon come with batteries repo and then running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip See also the tox.ini [https://github.c application. Let’s take a moment to write a test for what’s been implemented so far. First, create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should0 码力 | 194 页 | 266.90 KB | 1 年前3
Falcon v1.3.0 Documentationrepo and then running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list application. Let’s take a moment to write a test for what’s been implemented so far. First, create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should look | - __init__.py | - app.py | - images.py - tests - __init__.py - test_app.py Falcon supports testing its API object by simulating HTTP requests. Tests can either be written using Python’s standard0 码力 | 146 页 | 535.22 KB | 1 年前3
Falcon v3.0.0-b1 DocumentationDocumentation, Release 3.0.0b1 $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should now look like this: look .venv look __init__.py app.py images.py tests __init__ __init__.py test_app.py Falcon supports testing its App object by simulating HTTP requests. Tests can either be written using Python’s standard unittest module, or with any of a number of third-party testing0 码力 | 338 页 | 1.14 MB | 1 年前3
Falcon v3.0.0-b2 Documentationrepo and then running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should now look like this: look .venv look __init__.py app.py images.py tests __init__ __init__.py test_app.py Falcon supports testing its App object by simulating HTTP requests. Tests can either be written using Python’s standard unittest module, or with any of a number of third-party testing0 码力 | 340 页 | 1.15 MB | 1 年前3
Falcon v3.0.0 Documentationrepo and then running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should now look like this: look .venv look __init__.py app.py images.py tests __init__ __init__.py test_app.py Falcon supports testing its App object by simulating HTTP requests. Tests can either be written using Python’s standard unittest module, or with any of a number of third-party testing0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 Documentationrepo and then running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should now look like this: look .venv look __init__.py app.py images.py tests __init__ __init__.py test_app.py Falcon supports testing its App object by simulating HTTP requests. Tests can either be written using Python’s standard unittest module, or with any of a number of third-party testing0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v1.4.1 Documentationrepo and then running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should now look like this: look .venv look __init__.py app.py images.py tests __init__ __init__.py test_app.py Falcon supports testing its API object by simulating HTTP requests. Tests can either be written using Python’s standard unittest module, or with any of a number of third-party testing0 码力 | 158 页 | 587.88 KB | 1 年前3
Falcon v1.4.0 Documentationrepo and then running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list create a tests directory with __init__.py and a test module (test_app.py) inside it. The project’s structure should now look like this: look .venv look __init__.py app.py images.py tests __init__ __init__.py test_app.py Falcon supports testing its API object by simulating HTTP requests. Tests can either be written using Python’s standard unittest module, or with any of a number of third-party testing0 码力 | 156 页 | 573.94 KB | 1 年前3
共 40 条
- 1
- 2
- 3
- 4













