testtools 2.8.4__tar.gz → 2.8.5__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.
- {testtools-2.8.4 → testtools-2.8.5}/PKG-INFO +2 -2
- {testtools-2.8.4 → testtools-2.8.5}/pyproject.toml +1 -1
- {testtools-2.8.4 → testtools-2.8.5}/testtools/_version.py +2 -2
- {testtools-2.8.4 → testtools-2.8.5}/testtools/testcase.py +11 -18
- {testtools-2.8.4 → testtools-2.8.5}/.git-blame-ignore-revs +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/.github/dependabot.yaml +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/.github/workflows/publish.yml +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/.github/workflows/test.yml +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/.gitignore +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/.gitreview +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/.testr.conf +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/LICENSE +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/MANIFEST.in +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/Makefile +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/NEWS +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/README.rst +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/disperse.conf +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/doc/Makefile +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/doc/_static/placeholder.txt +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/doc/_templates/placeholder.txt +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/doc/api.rst +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/doc/conf.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/doc/for-framework-folk.rst +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/doc/for-test-authors.rst +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/doc/hacking.rst +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/doc/index.rst +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/doc/make.bat +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/doc/news.rst +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/doc/overview.rst +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/doc/twisted-support.rst +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/readthedocs-requirements.txt +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/requirements.txt +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/scripts/README +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/scripts/all-pythons +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/scripts/update-rtfd +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/__init__.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/helpers.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/__init__.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_basic.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_const.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_datastructures.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_dict.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_doctest.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_exception.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_filesystem.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_higherorder.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_impl.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/matchers/test_warnings.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/samplecases.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_assert_that.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_compat.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_content.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_content_type.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_fixturesupport.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_helpers.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_monkey.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_run.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_runtest.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_tags.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_testcase.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_testresult.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_testsuite.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/test_with_with.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/twistedsupport/__init__.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/twistedsupport/_helpers.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/twistedsupport/test_deferred.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/twistedsupport/test_matchers.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/twistedsupport/test_runtest.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tests/twistedsupport/test_spinner.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/__init__.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/_version.pyi +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/assertions.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/compat.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/content.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/content_type.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/helpers.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/__init__.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_basic.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_const.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_datastructures.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_dict.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_doctest.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_exception.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_filesystem.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_higherorder.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_impl.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/_warnings.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/matchers/test.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/monkey.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/py.typed +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/run.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/runtest.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/tags.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/testresult/__init__.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/testresult/doubles.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/testresult/real.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/tests/__init__.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/tests/helpers.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/tests/matchers/__init__.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/tests/matchers/helpers.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/testsuite.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/twistedsupport/__init__.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/twistedsupport/_deferred.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/twistedsupport/_deferreddebug.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/twistedsupport/_matchers.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/twistedsupport/_runtest.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/testtools/twistedsupport/_spinner.py +0 -0
- {testtools-2.8.4 → testtools-2.8.5}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: testtools
|
|
3
|
-
Version: 2.8.
|
|
3
|
+
Version: 2.8.5
|
|
4
4
|
Summary: Extensions to the Python standard library unit testing framework
|
|
5
5
|
Project-URL: Homepage, https://github.com/testing-cabal/testtools
|
|
6
6
|
Author-email: "Jonathan M. Lange" <jml+testtools@mumak.net>
|
|
@@ -26,7 +26,7 @@ Classifier: Typing :: Typed
|
|
|
26
26
|
Requires-Python: >=3.10
|
|
27
27
|
Provides-Extra: dev
|
|
28
28
|
Requires-Dist: mypy>=1.0.0; extra == 'dev'
|
|
29
|
-
Requires-Dist: ruff==0.
|
|
29
|
+
Requires-Dist: ruff==0.15.2; extra == 'dev'
|
|
30
30
|
Requires-Dist: typing-extensions; (python_version < '3.11') and extra == 'dev'
|
|
31
31
|
Provides-Extra: test
|
|
32
32
|
Requires-Dist: testresources; extra == 'test'
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# This file is automatically generated by hatch.
|
|
2
|
-
version = '2.8.
|
|
3
|
-
__version__ = (2, 8,
|
|
2
|
+
version = '2.8.5'
|
|
3
|
+
__version__ = (2, 8, 5)
|
|
@@ -23,7 +23,7 @@ import sys
|
|
|
23
23
|
import types
|
|
24
24
|
import unittest
|
|
25
25
|
from collections.abc import Callable, Iterator
|
|
26
|
-
from typing import
|
|
26
|
+
from typing import TypeVar, cast
|
|
27
27
|
from unittest.case import SkipTest
|
|
28
28
|
|
|
29
29
|
T = TypeVar("T")
|
|
@@ -56,6 +56,14 @@ from testtools.testresult import (
|
|
|
56
56
|
TestResult,
|
|
57
57
|
)
|
|
58
58
|
|
|
59
|
+
# Circular import: fixtures imports gather_details from here, we import
|
|
60
|
+
# fixtures, leading to gather_details not being available and fixtures being
|
|
61
|
+
# unable to import it.
|
|
62
|
+
try:
|
|
63
|
+
import fixtures
|
|
64
|
+
except ImportError:
|
|
65
|
+
fixtures = None # type: ignore
|
|
66
|
+
|
|
59
67
|
|
|
60
68
|
class _UnexpectedSuccess(Exception):
|
|
61
69
|
"""An unexpected success was raised.
|
|
@@ -183,22 +191,7 @@ def gather_details(source_dict: DetailsDict, target_dict: DetailsDict) -> None:
|
|
|
183
191
|
target_dict[name] = _copy_content(content_object)
|
|
184
192
|
|
|
185
193
|
|
|
186
|
-
|
|
187
|
-
# fixtures, leading to gather_details not being available and fixtures being
|
|
188
|
-
# unable to import it.
|
|
189
|
-
try:
|
|
190
|
-
import fixtures
|
|
191
|
-
except ImportError:
|
|
192
|
-
fixtures = None # type: ignore
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
class UseFixtureProtocol(Protocol):
|
|
196
|
-
def setUp(self) -> None: ...
|
|
197
|
-
def cleanUp(self) -> None: ...
|
|
198
|
-
def getDetails(self) -> DetailsDict: ...
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
UseFixtureT = TypeVar("UseFixtureT", bound=UseFixtureProtocol)
|
|
194
|
+
FixtureT = TypeVar("FixtureT", bound="fixtures.Fixture")
|
|
202
195
|
|
|
203
196
|
|
|
204
197
|
def _mods(i: int, mod: int) -> Iterator[int]:
|
|
@@ -892,7 +885,7 @@ class TestCase(unittest.TestCase):
|
|
|
892
885
|
"""
|
|
893
886
|
return self._get_test_method()()
|
|
894
887
|
|
|
895
|
-
def useFixture(self, fixture:
|
|
888
|
+
def useFixture(self, fixture: "FixtureT") -> "FixtureT":
|
|
896
889
|
"""Use fixture in a test case.
|
|
897
890
|
|
|
898
891
|
The fixture will be setUp, and self.addCleanup(fixture.cleanUp) called.
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|