Skip to content

Commit

Permalink
update instructions for running tests (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkdl authored Oct 20, 2023
1 parent b06b958 commit 9d92ef2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# generated by users and intentionally not pushed to the repo
requirements-dev.txt

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
17 changes: 14 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,21 +151,32 @@ If a service is not listed here and you could do with some tests or examples fee
Run Tests
---------

There are two set of tests, those that can be mocked through `moto <https://github.com/getmoto/moto>`_ running in docker, and those that require running against a personal amazon key. The CI only runs the moto tests.

To run the moto tests:

::

$ make mototest

To run the non-moto tests:

Make sure you have development requirements installed and your amazon key and
secret accessible via environment variables:

::

$ cd aiobotocore
$ pip install pip-tools
$ pip-compile requirements-dev.txt
$ pip-sync requirements-dev.txt
$ export AWS_ACCESS_KEY_ID=xxx
$ export AWS_SECRET_ACCESS_KEY=xxx
$ pip-sync requirements-dev.txt

Execute tests suite:

::

$ pytest -v tests
$ make test



Expand Down

0 comments on commit 9d92ef2

Please sign in to comment.