testgres.common 1.0.1__tar.gz → 1.0.2__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.
- {testgres_common-1.0.1/testgres.common.egg-info → testgres_common-1.0.2}/PKG-INFO +1 -1
- {testgres_common-1.0.1 → testgres_common-1.0.2}/pyproject.toml +9 -1
- {testgres_common-1.0.1 → testgres_common-1.0.2}/src/exceptions.py +7 -7
- {testgres_common-1.0.1 → testgres_common-1.0.2/testgres.common.egg-info}/PKG-INFO +1 -1
- {testgres_common-1.0.1 → testgres_common-1.0.2}/LICENSE +0 -0
- {testgres_common-1.0.1 → testgres_common-1.0.2}/README.md +0 -0
- {testgres_common-1.0.1 → testgres_common-1.0.2}/setup.cfg +0 -0
- {testgres_common-1.0.1 → testgres_common-1.0.2}/testgres.common.egg-info/SOURCES.txt +0 -0
- {testgres_common-1.0.1 → testgres_common-1.0.2}/testgres.common.egg-info/dependency_links.txt +0 -0
- {testgres_common-1.0.1 → testgres_common-1.0.2}/testgres.common.egg-info/top_level.txt +0 -0
|
@@ -9,9 +9,17 @@ build-backend = "setuptools.build_meta"
|
|
|
9
9
|
extend-ignore = ["E501"]
|
|
10
10
|
exclude = [".git", "__pycache__", "env", "venv"]
|
|
11
11
|
|
|
12
|
+
# Pytest settings
|
|
13
|
+
[tool.pytest.ini_options]
|
|
14
|
+
|
|
15
|
+
testpaths = ["tests"]
|
|
16
|
+
log_file_level = "NOTSET"
|
|
17
|
+
log_file_format = "%(levelname)8s [%(asctime)s] %(message)s"
|
|
18
|
+
log_file_date_format = "%Y-%m-%d %H:%M:%S"
|
|
19
|
+
|
|
12
20
|
[project]
|
|
13
21
|
name = "testgres.common"
|
|
14
|
-
version = "1.0.
|
|
22
|
+
version = "1.0.2"
|
|
15
23
|
|
|
16
24
|
description = "Testgres common code"
|
|
17
25
|
readme = "README.md"
|
|
@@ -8,7 +8,7 @@ class TestgresException(Exception):
|
|
|
8
8
|
assert isinstance(self, TestgresException)
|
|
9
9
|
r = super().__str__()
|
|
10
10
|
assert r is not None
|
|
11
|
-
assert type(r)
|
|
11
|
+
assert type(r) is str
|
|
12
12
|
return r
|
|
13
13
|
|
|
14
14
|
@property
|
|
@@ -18,7 +18,7 @@ class TestgresException(Exception):
|
|
|
18
18
|
|
|
19
19
|
def __str__(self) -> str:
|
|
20
20
|
r = self.message
|
|
21
|
-
assert type(r)
|
|
21
|
+
assert type(r) is str
|
|
22
22
|
return r
|
|
23
23
|
|
|
24
24
|
|
|
@@ -27,8 +27,8 @@ class InvalidOperationException(TestgresException):
|
|
|
27
27
|
_source: typing.Optional[str]
|
|
28
28
|
|
|
29
29
|
def __init__(self, message: str, source: typing.Optional[str] = None):
|
|
30
|
-
assert type(message)
|
|
31
|
-
assert source is None or type(source)
|
|
30
|
+
assert type(message) is str
|
|
31
|
+
assert source is None or type(source) is str
|
|
32
32
|
super().__init__()
|
|
33
33
|
self._message = message
|
|
34
34
|
self._source = source
|
|
@@ -36,12 +36,12 @@ class InvalidOperationException(TestgresException):
|
|
|
36
36
|
|
|
37
37
|
@property
|
|
38
38
|
def message(self) -> str:
|
|
39
|
-
assert type(self._message)
|
|
39
|
+
assert type(self._message) is str
|
|
40
40
|
return self._message
|
|
41
41
|
|
|
42
42
|
@property
|
|
43
43
|
def source(self) -> str:
|
|
44
|
-
assert self._source is None or type(self._source)
|
|
44
|
+
assert self._source is None or type(self._source) is str
|
|
45
45
|
return self._source
|
|
46
46
|
|
|
47
47
|
def __repr__(self) -> str:
|
|
@@ -52,5 +52,5 @@ class InvalidOperationException(TestgresException):
|
|
|
52
52
|
repr(self._message),
|
|
53
53
|
repr(self._source),
|
|
54
54
|
)
|
|
55
|
-
assert type(r)
|
|
55
|
+
assert type(r) is str
|
|
56
56
|
return r
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testgres_common-1.0.1 → testgres_common-1.0.2}/testgres.common.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|