nti.testing 4.2.0__tar.gz → 4.3.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.2.0 → nti_testing-4.3.0}/.readthedocs.yml +1 -1
- {nti_testing-4.2.0 → nti_testing-4.3.0}/CHANGES.rst +14 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/PKG-INFO +36 -4
- {nti_testing-4.2.0 → nti_testing-4.3.0}/setup.py +4 -4
- nti_testing-4.3.0/src/nti/__init__.py +1 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/layers/postgres.py +6 -4
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti.testing.egg-info/PKG-INFO +36 -4
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti.testing.egg-info/requires.txt +9 -2
- nti_testing-4.2.0/src/nti/testing/tests/__init__.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/.coveragerc +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/.isort.cfg +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/.nti_cover_package +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/.pylintrc +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/.travis.yml +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/COPYRIGHT.txt +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/INSTALL +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/LICENSE +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/MANIFEST.in +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/README.rst +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/TODO +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/doc-requirements.txt +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/docs/_static/custom.css +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/docs/api.rst +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/docs/base.rst +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/docs/changelog.rst +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/docs/conf.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/docs/index.rst +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/docs/layers.rst +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/docs/matchers.rst +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/docs/time.rst +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/docs/zodb.rst +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/pyproject.toml +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/setup.cfg +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/__init__.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/base.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/layers/__init__.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/layers/cleanup.py +0 -0
- {nti_testing-4.2.0/src/nti → nti_testing-4.3.0/src/nti/testing/layers/tests}/__init__.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/layers/tests/test_postgres.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/layers/zope.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/matchers.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/mock.py +0 -0
- {nti_testing-4.2.0/src/nti/testing/layers → nti_testing-4.3.0/src/nti/testing}/tests/__init__.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/tests/test_base.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/tests/test_component_cleanup_broken.txt +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/tests/test_layers.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/tests/test_main.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/tests/test_matchers.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/tests/test_time.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/tests/test_zodb.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/time.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/zodb.py +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti.testing.egg-info/SOURCES.txt +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti.testing.egg-info/dependency_links.txt +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti.testing.egg-info/top_level.txt +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti.testing.egg-info/zip-safe +0 -0
- {nti_testing-4.2.0 → nti_testing-4.3.0}/tox.ini +0 -0
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
Changes
|
|
3
3
|
=========
|
|
4
4
|
|
|
5
|
+
4.3.0 (2025-04-22)
|
|
6
|
+
==================
|
|
7
|
+
|
|
8
|
+
- Support and require testgres version 1.11. This version refactored
|
|
9
|
+
some internals, breaking the monkey-patches that ``DatabaseLayer``
|
|
10
|
+
applies.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
4.2.0.post0 (2024-11-08)
|
|
14
|
+
========================
|
|
15
|
+
|
|
16
|
+
- Nothing changed yet.
|
|
17
|
+
|
|
18
|
+
|
|
5
19
|
4.2.0 (2024-11-06)
|
|
6
20
|
==================
|
|
7
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: nti.testing
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.3.0
|
|
4
4
|
Summary: Support for testing code
|
|
5
5
|
Home-page: https://github.com/OpenNTI/nti.testing
|
|
6
6
|
Author: Jason Madden
|
|
@@ -39,14 +39,32 @@ Provides-Extra: test
|
|
|
39
39
|
Requires-Dist: Acquisition; extra == "test"
|
|
40
40
|
Requires-Dist: zope.site; extra == "test"
|
|
41
41
|
Requires-Dist: zope.testrunner; extra == "test"
|
|
42
|
-
Requires-Dist: testgres>=1.
|
|
42
|
+
Requires-Dist: testgres>=1.11; extra == "test"
|
|
43
43
|
Requires-Dist: psycopg2-binary; platform_python_implementation != "PyPy" and extra == "test"
|
|
44
44
|
Provides-Extra: docs
|
|
45
45
|
Requires-Dist: Sphinx; extra == "docs"
|
|
46
46
|
Requires-Dist: furo; extra == "docs"
|
|
47
|
+
Requires-Dist: Acquisition; extra == "docs"
|
|
48
|
+
Requires-Dist: zope.site; extra == "docs"
|
|
49
|
+
Requires-Dist: zope.testrunner; extra == "docs"
|
|
50
|
+
Requires-Dist: testgres>=1.11; extra == "docs"
|
|
51
|
+
Requires-Dist: psycopg2-binary; platform_python_implementation != "PyPy" and extra == "docs"
|
|
47
52
|
Provides-Extra: testgres
|
|
48
|
-
Requires-Dist: testgres>=1.
|
|
53
|
+
Requires-Dist: testgres>=1.11; extra == "testgres"
|
|
49
54
|
Requires-Dist: psycopg2-binary; platform_python_implementation != "PyPy" and extra == "testgres"
|
|
55
|
+
Dynamic: author
|
|
56
|
+
Dynamic: author-email
|
|
57
|
+
Dynamic: classifier
|
|
58
|
+
Dynamic: description
|
|
59
|
+
Dynamic: home-page
|
|
60
|
+
Dynamic: keywords
|
|
61
|
+
Dynamic: license
|
|
62
|
+
Dynamic: license-file
|
|
63
|
+
Dynamic: project-url
|
|
64
|
+
Dynamic: provides-extra
|
|
65
|
+
Dynamic: requires-dist
|
|
66
|
+
Dynamic: requires-python
|
|
67
|
+
Dynamic: summary
|
|
50
68
|
|
|
51
69
|
=============
|
|
52
70
|
nti.testing
|
|
@@ -302,6 +320,20 @@ ZODB in `nti.testing.zodb`. See the API documentation for details.
|
|
|
302
320
|
Changes
|
|
303
321
|
=========
|
|
304
322
|
|
|
323
|
+
4.3.0 (2025-04-22)
|
|
324
|
+
==================
|
|
325
|
+
|
|
326
|
+
- Support and require testgres version 1.11. This version refactored
|
|
327
|
+
some internals, breaking the monkey-patches that ``DatabaseLayer``
|
|
328
|
+
applies.
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
4.2.0.post0 (2024-11-08)
|
|
332
|
+
========================
|
|
333
|
+
|
|
334
|
+
- Nothing changed yet.
|
|
335
|
+
|
|
336
|
+
|
|
305
337
|
4.2.0 (2024-11-06)
|
|
306
338
|
==================
|
|
307
339
|
|
|
@@ -6,7 +6,7 @@ from setuptools import setup
|
|
|
6
6
|
from setuptools import find_namespace_packages
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
version = '4.
|
|
9
|
+
version = '4.3.0'
|
|
10
10
|
|
|
11
11
|
entry_points = {
|
|
12
12
|
}
|
|
@@ -15,7 +15,7 @@ TESTS_REQUIRE = [
|
|
|
15
15
|
'Acquisition',
|
|
16
16
|
'zope.site',
|
|
17
17
|
'zope.testrunner',
|
|
18
|
-
'testgres >= 1.
|
|
18
|
+
'testgres >= 1.11',
|
|
19
19
|
'psycopg2-binary; python_implementation != "PyPy"',
|
|
20
20
|
]
|
|
21
21
|
|
|
@@ -76,9 +76,9 @@ setup(
|
|
|
76
76
|
'docs': [
|
|
77
77
|
'Sphinx',
|
|
78
78
|
'furo',
|
|
79
|
-
],
|
|
79
|
+
] + TESTS_REQUIRE,
|
|
80
80
|
'testgres': [
|
|
81
|
-
'testgres >= 1.
|
|
81
|
+
'testgres >= 1.11',
|
|
82
82
|
'psycopg2-binary; python_implementation != "PyPy"',
|
|
83
83
|
],
|
|
84
84
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
|
|
@@ -82,8 +82,10 @@ def patched_get_pg_version(*args, **kwargs):
|
|
|
82
82
|
# We patch this in testgres.node, so its ok to import
|
|
83
83
|
# the original. In version 1.10, they changed the signature
|
|
84
84
|
# of this function, so be sure to accept whatever it does and
|
|
85
|
-
# pass it on.
|
|
86
|
-
|
|
85
|
+
# pass it on. In version 1.11, this was replaced with
|
|
86
|
+
# get_pg_version2, which does the same thing just takes
|
|
87
|
+
# more arguments.
|
|
88
|
+
from testgres.utils import get_pg_version2
|
|
87
89
|
from testgres.node import PgVer
|
|
88
90
|
from packaging.version import InvalidVersion
|
|
89
91
|
|
|
@@ -94,7 +96,7 @@ def patched_get_pg_version(*args, **kwargs):
|
|
|
94
96
|
# "15.3-0+". If it can't be parsed, then return a fake.
|
|
95
97
|
|
|
96
98
|
try:
|
|
97
|
-
version =
|
|
99
|
+
version = get_pg_version2(*args, **kwargs)
|
|
98
100
|
PgVer(version)
|
|
99
101
|
except InvalidVersion:
|
|
100
102
|
print('testgres: Got invalid postgres version', version)
|
|
@@ -145,7 +147,7 @@ class DatabaseLayer(object):
|
|
|
145
147
|
def setUp(cls):
|
|
146
148
|
testgres.configure_testgres()
|
|
147
149
|
|
|
148
|
-
with patch('testgres.node.
|
|
150
|
+
with patch('testgres.node.get_pg_version2', new=patched_get_pg_version):
|
|
149
151
|
node = cls.postgres_node = testgres.get_new_node()
|
|
150
152
|
|
|
151
153
|
# init takes about about 2 -- 3 seconds
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: nti.testing
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.3.0
|
|
4
4
|
Summary: Support for testing code
|
|
5
5
|
Home-page: https://github.com/OpenNTI/nti.testing
|
|
6
6
|
Author: Jason Madden
|
|
@@ -39,14 +39,32 @@ Provides-Extra: test
|
|
|
39
39
|
Requires-Dist: Acquisition; extra == "test"
|
|
40
40
|
Requires-Dist: zope.site; extra == "test"
|
|
41
41
|
Requires-Dist: zope.testrunner; extra == "test"
|
|
42
|
-
Requires-Dist: testgres>=1.
|
|
42
|
+
Requires-Dist: testgres>=1.11; extra == "test"
|
|
43
43
|
Requires-Dist: psycopg2-binary; platform_python_implementation != "PyPy" and extra == "test"
|
|
44
44
|
Provides-Extra: docs
|
|
45
45
|
Requires-Dist: Sphinx; extra == "docs"
|
|
46
46
|
Requires-Dist: furo; extra == "docs"
|
|
47
|
+
Requires-Dist: Acquisition; extra == "docs"
|
|
48
|
+
Requires-Dist: zope.site; extra == "docs"
|
|
49
|
+
Requires-Dist: zope.testrunner; extra == "docs"
|
|
50
|
+
Requires-Dist: testgres>=1.11; extra == "docs"
|
|
51
|
+
Requires-Dist: psycopg2-binary; platform_python_implementation != "PyPy" and extra == "docs"
|
|
47
52
|
Provides-Extra: testgres
|
|
48
|
-
Requires-Dist: testgres>=1.
|
|
53
|
+
Requires-Dist: testgres>=1.11; extra == "testgres"
|
|
49
54
|
Requires-Dist: psycopg2-binary; platform_python_implementation != "PyPy" and extra == "testgres"
|
|
55
|
+
Dynamic: author
|
|
56
|
+
Dynamic: author-email
|
|
57
|
+
Dynamic: classifier
|
|
58
|
+
Dynamic: description
|
|
59
|
+
Dynamic: home-page
|
|
60
|
+
Dynamic: keywords
|
|
61
|
+
Dynamic: license
|
|
62
|
+
Dynamic: license-file
|
|
63
|
+
Dynamic: project-url
|
|
64
|
+
Dynamic: provides-extra
|
|
65
|
+
Dynamic: requires-dist
|
|
66
|
+
Dynamic: requires-python
|
|
67
|
+
Dynamic: summary
|
|
50
68
|
|
|
51
69
|
=============
|
|
52
70
|
nti.testing
|
|
@@ -302,6 +320,20 @@ ZODB in `nti.testing.zodb`. See the API documentation for details.
|
|
|
302
320
|
Changes
|
|
303
321
|
=========
|
|
304
322
|
|
|
323
|
+
4.3.0 (2025-04-22)
|
|
324
|
+
==================
|
|
325
|
+
|
|
326
|
+
- Support and require testgres version 1.11. This version refactored
|
|
327
|
+
some internals, breaking the monkey-patches that ``DatabaseLayer``
|
|
328
|
+
applies.
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
4.2.0.post0 (2024-11-08)
|
|
332
|
+
========================
|
|
333
|
+
|
|
334
|
+
- Nothing changed yet.
|
|
335
|
+
|
|
336
|
+
|
|
305
337
|
4.2.0 (2024-11-06)
|
|
306
338
|
==================
|
|
307
339
|
|
|
@@ -13,18 +13,25 @@ zope.testing
|
|
|
13
13
|
[docs]
|
|
14
14
|
Sphinx
|
|
15
15
|
furo
|
|
16
|
+
Acquisition
|
|
17
|
+
zope.site
|
|
18
|
+
zope.testrunner
|
|
19
|
+
testgres>=1.11
|
|
20
|
+
|
|
21
|
+
[docs:platform_python_implementation != "PyPy"]
|
|
22
|
+
psycopg2-binary
|
|
16
23
|
|
|
17
24
|
[test]
|
|
18
25
|
Acquisition
|
|
19
26
|
zope.site
|
|
20
27
|
zope.testrunner
|
|
21
|
-
testgres>=1.
|
|
28
|
+
testgres>=1.11
|
|
22
29
|
|
|
23
30
|
[test:platform_python_implementation != "PyPy"]
|
|
24
31
|
psycopg2-binary
|
|
25
32
|
|
|
26
33
|
[testgres]
|
|
27
|
-
testgres>=1.
|
|
34
|
+
testgres>=1.11
|
|
28
35
|
|
|
29
36
|
[testgres:platform_python_implementation != "PyPy"]
|
|
30
37
|
psycopg2-binary
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nti_testing-4.2.0/src/nti/testing/layers → nti_testing-4.3.0/src/nti/testing}/tests/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{nti_testing-4.2.0 → nti_testing-4.3.0}/src/nti/testing/tests/test_component_cleanup_broken.txt
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
|