Skip to content

Commit

Permalink
fix: Docs build. (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCardin committed Oct 5, 2022
1 parent 51d9785 commit ee6ea37
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions docs/source/fixtures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ A new resource (database or otherwise) is created on a per test database, which
fixture to be used in multiple tests without risking data leakage or side-effects from one
test to another.

.. note::

By default the underlying containers are reused across tests to amortize the container startup
cost. Tests then create new "resources" (e.g. databases) within that container to avoid
inter-test pollution.

This **can** cause inter-test dependencies if your tests are altering container-global resources
like database users. In the event this is a problem, resources can be configured to **not**
be session fixtures, although this will likely be drastically slower overall.

See :ref:`Config` for information on customizing the configuration for docker-based fixtures.

.. toctree::
Expand Down
6 changes: 3 additions & 3 deletions readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
build:
image: latest
image: latest

python:
version: 3.6
pip_install: true
version: 3.7
pip_install: true

requirements: docs/requirements.txt
sphinx:
Expand Down

0 comments on commit ee6ea37

Please sign in to comment.