nti.testing 4.1.0__tar.gz → 4.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nti.testing-4.1.0 → nti_testing-4.2.0}/.pylintrc +1 -8
- {nti.testing-4.1.0 → nti_testing-4.2.0}/CHANGES.rst +7 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/PKG-INFO +10 -2
- nti_testing-4.2.0/pyproject.toml +5 -0
- nti_testing-4.2.0/setup.cfg +4 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/setup.py +6 -5
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/base.py +1 -1
- nti_testing-4.2.0/src/nti/testing/tests/__init__.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_component_cleanup_broken.txt +0 -1
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/zodb.py +1 -1
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti.testing.egg-info/PKG-INFO +10 -2
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti.testing.egg-info/SOURCES.txt +1 -3
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti.testing.egg-info/requires.txt +0 -1
- nti.testing-4.1.0/nose2.cfg +0 -21
- nti.testing-4.1.0/setup.cfg +0 -11
- nti.testing-4.1.0/src/nti/__init__.py +0 -1
- nti.testing-4.1.0/src/nti.testing.egg-info/namespace_packages.txt +0 -1
- {nti.testing-4.1.0 → nti_testing-4.2.0}/.coveragerc +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/.isort.cfg +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/.nti_cover_package +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/.readthedocs.yml +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/.travis.yml +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/COPYRIGHT.txt +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/INSTALL +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/LICENSE +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/MANIFEST.in +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/README.rst +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/TODO +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/doc-requirements.txt +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/_static/custom.css +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/api.rst +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/base.rst +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/changelog.rst +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/conf.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/index.rst +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/layers.rst +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/matchers.rst +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/time.rst +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/docs/zodb.rst +0 -0
- {nti.testing-4.1.0/src/nti/testing/layers/tests → nti_testing-4.2.0/src/nti}/__init__.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/__init__.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/layers/__init__.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/layers/cleanup.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/layers/postgres.py +0 -0
- {nti.testing-4.1.0/src/nti/testing → nti_testing-4.2.0/src/nti/testing/layers}/tests/__init__.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/layers/tests/test_postgres.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/layers/zope.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/matchers.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/mock.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_base.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_layers.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_main.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_matchers.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_time.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/tests/test_zodb.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti/testing/time.py +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti.testing.egg-info/dependency_links.txt +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti.testing.egg-info/top_level.txt +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/src/nti.testing.egg-info/zip-safe +0 -0
- {nti.testing-4.1.0 → nti_testing-4.2.0}/tox.ini +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
[MASTER]
|
|
2
2
|
load-plugins=pylint.extensions.bad_builtin,
|
|
3
|
-
pylint.extensions.broad_try_clause,
|
|
4
3
|
pylint.extensions.check_elif,
|
|
5
4
|
pylint.extensions.code_style,
|
|
6
5
|
pylint.extensions.dict_init_mutate,
|
|
@@ -16,13 +15,9 @@ load-plugins=pylint.extensions.bad_builtin,
|
|
|
16
15
|
pylint.extensions.overlapping_exceptions,
|
|
17
16
|
pylint.extensions.docparams,
|
|
18
17
|
pylint.extensions.private_import,
|
|
18
|
+
pylint.extensions.set_membership,
|
|
19
19
|
pylint.extensions.typing,
|
|
20
20
|
|
|
21
|
-
# pylint.extensions.set_membership,
|
|
22
|
-
# wants you to turn ``foo in (1, 2)`` into ``foo in {1, 2}``;
|
|
23
|
-
# but for small tuples, the former is actually more
|
|
24
|
-
# performant.
|
|
25
|
-
|
|
26
21
|
# magic_value wants you to not use arbitrary strings and numbers
|
|
27
22
|
# inline in the code. But it's overzealous and has way too many false
|
|
28
23
|
# positives. Trust people to do the most readable thing.
|
|
@@ -155,8 +150,6 @@ disable=wrong-import-position,
|
|
|
155
150
|
differing-type-doc,
|
|
156
151
|
compare-to-zero,
|
|
157
152
|
docstring-first-line-empty,
|
|
158
|
-
too-many-try-statements,
|
|
159
|
-
redefined-variable-type,
|
|
160
153
|
|
|
161
154
|
enable=consider-using-augmented-assign
|
|
162
155
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: nti.testing
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.2.0
|
|
4
4
|
Summary: Support for testing code
|
|
5
5
|
Home-page: https://github.com/OpenNTI/nti.testing
|
|
6
6
|
Author: Jason Madden
|
|
@@ -13,9 +13,11 @@ Classifier: Natural Language :: English
|
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
14
14
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
17
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
21
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
20
22
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
21
23
|
Classifier: Topic :: Software Development :: Testing
|
|
@@ -26,7 +28,6 @@ Requires-Dist: ZODB>=5.6.0
|
|
|
26
28
|
Requires-Dist: zope.interface>=5.4.0
|
|
27
29
|
Requires-Dist: pyhamcrest
|
|
28
30
|
Requires-Dist: six
|
|
29
|
-
Requires-Dist: setuptools
|
|
30
31
|
Requires-Dist: transaction
|
|
31
32
|
Requires-Dist: zope.component
|
|
32
33
|
Requires-Dist: zope.configuration
|
|
@@ -301,6 +302,13 @@ ZODB in `nti.testing.zodb`. See the API documentation for details.
|
|
|
301
302
|
Changes
|
|
302
303
|
=========
|
|
303
304
|
|
|
305
|
+
4.2.0 (2024-11-06)
|
|
306
|
+
==================
|
|
307
|
+
|
|
308
|
+
- Add support for Python 3.13.
|
|
309
|
+
- Use native namespace packages.
|
|
310
|
+
|
|
311
|
+
|
|
304
312
|
4.1.0 (2024-04-10)
|
|
305
313
|
==================
|
|
306
314
|
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
# Copyright 2022-2024 Jason Madden
|
|
3
3
|
# Released under the terms of the LICENSE file.
|
|
4
4
|
import codecs
|
|
5
|
-
from setuptools import setup
|
|
5
|
+
from setuptools import setup
|
|
6
|
+
from setuptools import find_namespace_packages
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
version = '4.
|
|
9
|
+
version = '4.2.0'
|
|
9
10
|
|
|
10
11
|
entry_points = {
|
|
11
12
|
}
|
|
@@ -41,25 +42,25 @@ setup(
|
|
|
41
42
|
'Operating System :: OS Independent',
|
|
42
43
|
'License :: OSI Approved :: Apache Software License',
|
|
43
44
|
'Programming Language :: Python :: 3',
|
|
45
|
+
'Programming Language :: Python :: 3 :: Only',
|
|
44
46
|
'Programming Language :: Python :: 3.10',
|
|
45
47
|
'Programming Language :: Python :: 3.11',
|
|
46
48
|
'Programming Language :: Python :: 3.12',
|
|
49
|
+
'Programming Language :: Python :: 3.13',
|
|
47
50
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
48
51
|
'Programming Language :: Python :: Implementation :: PyPy',
|
|
49
52
|
'Topic :: Software Development :: Testing',
|
|
50
53
|
'Framework :: Zope3',
|
|
51
54
|
],
|
|
52
55
|
zip_safe=True,
|
|
53
|
-
packages=
|
|
56
|
+
packages=find_namespace_packages(where='src'),
|
|
54
57
|
package_dir={'': 'src'},
|
|
55
|
-
namespace_packages=['nti'],
|
|
56
58
|
install_requires=[
|
|
57
59
|
'ZODB >= 5.6.0',
|
|
58
60
|
# Error messages changed in 5.1, reprs changed <= 5.4
|
|
59
61
|
'zope.interface >= 5.4.0',
|
|
60
62
|
'pyhamcrest',
|
|
61
63
|
'six',
|
|
62
|
-
'setuptools',
|
|
63
64
|
'transaction',
|
|
64
65
|
'zope.component',
|
|
65
66
|
'zope.configuration',
|
|
@@ -94,7 +94,7 @@ class AbstractConfiguringObject(object):
|
|
|
94
94
|
package=obj.get_configuration_package())
|
|
95
95
|
|
|
96
96
|
@staticmethod
|
|
97
|
-
def _do_configure_packages(obj,
|
|
97
|
+
def _do_configure_packages(obj, # pylint:disable=too-many-positional-arguments
|
|
98
98
|
set_up_packages=(),
|
|
99
99
|
features=(),
|
|
100
100
|
context=_marker,
|
|
File without changes
|
|
@@ -154,7 +154,7 @@ class mock_db_trans(object):
|
|
|
154
154
|
tx = self.__current_transaction
|
|
155
155
|
if not txm.explicit:
|
|
156
156
|
abort_only = True
|
|
157
|
-
error_in_body = _TransactionManagerModeChanged(t, v, tb)
|
|
157
|
+
error_in_body:Exception = _TransactionManagerModeChanged(t, v, tb)
|
|
158
158
|
|
|
159
159
|
try:
|
|
160
160
|
if txm.get() is not tx:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: nti.testing
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.2.0
|
|
4
4
|
Summary: Support for testing code
|
|
5
5
|
Home-page: https://github.com/OpenNTI/nti.testing
|
|
6
6
|
Author: Jason Madden
|
|
@@ -13,9 +13,11 @@ Classifier: Natural Language :: English
|
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
14
14
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
17
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
21
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
20
22
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
21
23
|
Classifier: Topic :: Software Development :: Testing
|
|
@@ -26,7 +28,6 @@ Requires-Dist: ZODB>=5.6.0
|
|
|
26
28
|
Requires-Dist: zope.interface>=5.4.0
|
|
27
29
|
Requires-Dist: pyhamcrest
|
|
28
30
|
Requires-Dist: six
|
|
29
|
-
Requires-Dist: setuptools
|
|
30
31
|
Requires-Dist: transaction
|
|
31
32
|
Requires-Dist: zope.component
|
|
32
33
|
Requires-Dist: zope.configuration
|
|
@@ -301,6 +302,13 @@ ZODB in `nti.testing.zodb`. See the API documentation for details.
|
|
|
301
302
|
Changes
|
|
302
303
|
=========
|
|
303
304
|
|
|
305
|
+
4.2.0 (2024-11-06)
|
|
306
|
+
==================
|
|
307
|
+
|
|
308
|
+
- Add support for Python 3.13.
|
|
309
|
+
- Use native namespace packages.
|
|
310
|
+
|
|
311
|
+
|
|
304
312
|
4.1.0 (2024-04-10)
|
|
305
313
|
==================
|
|
306
314
|
|
|
@@ -12,8 +12,7 @@ MANIFEST.in
|
|
|
12
12
|
README.rst
|
|
13
13
|
TODO
|
|
14
14
|
doc-requirements.txt
|
|
15
|
-
|
|
16
|
-
setup.cfg
|
|
15
|
+
pyproject.toml
|
|
17
16
|
setup.py
|
|
18
17
|
tox.ini
|
|
19
18
|
docs/api.rst
|
|
@@ -30,7 +29,6 @@ src/nti/__init__.py
|
|
|
30
29
|
src/nti.testing.egg-info/PKG-INFO
|
|
31
30
|
src/nti.testing.egg-info/SOURCES.txt
|
|
32
31
|
src/nti.testing.egg-info/dependency_links.txt
|
|
33
|
-
src/nti.testing.egg-info/namespace_packages.txt
|
|
34
32
|
src/nti.testing.egg-info/requires.txt
|
|
35
33
|
src/nti.testing.egg-info/top_level.txt
|
|
36
34
|
src/nti.testing.egg-info/zip-safe
|
nti.testing-4.1.0/nose2.cfg
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
[unittest]
|
|
2
|
-
plugins = nose2.plugins.layers
|
|
3
|
-
nose2.plugins.doctests
|
|
4
|
-
|
|
5
|
-
[log-capture]
|
|
6
|
-
always-on = true
|
|
7
|
-
clear-handlers = true
|
|
8
|
-
loglevel = DEBUG
|
|
9
|
-
|
|
10
|
-
#[output-buffer]
|
|
11
|
-
#always-on = true
|
|
12
|
-
#stderr = true
|
|
13
|
-
|
|
14
|
-
[doctest]
|
|
15
|
-
always-on = true
|
|
16
|
-
extensions = .txt
|
|
17
|
-
.rst
|
|
18
|
-
|
|
19
|
-
[layer-reporter]
|
|
20
|
-
always-on = true
|
|
21
|
-
colors = true
|
nti.testing-4.1.0/setup.cfg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__import__('pkg_resources').declare_namespace(__name__) # pragma: no cover
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nti
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nti.testing-4.1.0/src/nti/testing → nti_testing-4.2.0/src/nti/testing/layers}/tests/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|