Skip to content

Commit

Permalink
Refactor layers; add postgres support.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Oct 24, 2023
1 parent f0edde3 commit 5a48b68
Show file tree
Hide file tree
Showing 12 changed files with 753 additions and 996 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ Installation
nti.testing can be installed using pip, either from the git repository
or from PyPI::

pip install nti.testing
pip install nti.testing[testgres]

Use the ``testgres`` extra to be able to use `nti.testing.layers.postgres`.

PyHamcrest
==========
Expand Down Expand Up @@ -179,7 +180,7 @@ Test Fixtures

Support for test fixtures can be found in `nti.testing.base` and
`nti.testing.layers`. The ``base`` package includes fully-fleshed
out base classes for direct use, while the ``layers`` package includes
out base classes for direct use, while the ``layers`` package mostly includes
mixins that can be used to construct your own test layers.

The ``base`` package makes a distinction between "normal" and "shared"
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
'Acquisition',
'zope.site',
'zope.testrunner',
'testgres',
]

def _read(fname):
Expand Down Expand Up @@ -75,6 +76,8 @@ def _read(fname):
'Sphinx',
'sphinx_rtd_theme',
],
'testgres': [
],
},
python_requires=">=3.8",
)
2 changes: 2 additions & 0 deletions src/nti/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
from .matchers import implements
from .matchers import verifiably_provides
from .matchers import validly_provides
from .matchers import provides
from .matchers import validated_by
from .matchers import not_validated_by
from .matchers import aq_inContextOf
Expand Down Expand Up @@ -95,6 +96,7 @@ def transactionCleanUp():
'implements',
'verifiably_provides',
'validly_provides',
'provides',
'validated_by',
'not_validated_by',
'aq_inContextOf',
Expand Down
244 changes: 0 additions & 244 deletions src/nti/testing/layers.py

This file was deleted.

Loading

0 comments on commit 5a48b68

Please sign in to comment.