@@ -18,19 +18,21 @@ A set of py.test fixtures for AWS Chalice
18
18
19
19
----
20
20
21
- This `pytest `_ plugin was generated with `Cookiecutter `_ along with `@hackebrot `_'s `cookiecutter-pytest-plugin `_ template.
22
-
23
-
24
21
Features
25
- --------
22
+ ------------
26
23
27
- * TODO
24
+ - Launch the local gateway per test function
25
+ - Provide an abstracted client fixture to access the local gateway
26
+ - Expose an interface to overwrite response context with arbitrary objects
27
+ - As of Chalice version 1.8.0, `LocalGateway ` object doesn't handle Cognito's context
28
+ - Not only for this purpose, it's an interface provided to allow custom contexts in unit tests
28
29
29
30
30
31
Requirements
31
32
------------
32
33
33
- * TODO
34
+ - `pytest `_
35
+ - `Chalice `_
34
36
35
37
36
38
Installation
@@ -44,7 +46,11 @@ You can install "pytest-chalice" via `pip`_ from `PyPI`_::
44
46
Usage
45
47
-----
46
48
47
- * TODO
49
+ .. literalinclude :: examples/simple/app.py
50
+
51
+ .. literalinclude :: examples/simple/tests/test_app.py
52
+
53
+ See `examples <https://github.com/studio3104/pytest-chalice/tree/master/examples >`_ for more detailed
48
54
49
55
Contributing
50
56
------------
62
68
63
69
If you encounter any problems, please `file an issue `_ along with a detailed description.
64
70
65
- .. _`Cookiecutter` : https://github.com/audreyr/cookiecutter
66
71
.. _`@hackebrot` : https://github.com/hackebrot
67
72
.. _`MIT` : http://opensource.org/licenses/MIT
68
73
.. _`BSD-3` : http://opensource.org/licenses/BSD-3-Clause
@@ -74,3 +79,4 @@ If you encounter any problems, please `file an issue`_ along with a detailed des
74
79
.. _`tox` : https://tox.readthedocs.io/en/latest/
75
80
.. _`pip` : https://pypi.org/project/pip/
76
81
.. _`PyPI` : https://pypi.org/project
82
+ .. _`Chalice` : https://github.com/aws/chalice
0 commit comments