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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testgres.common
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: Testgres common code
5
5
  Author-email: Postgres Professional <testgres@postgrespro.ru>
6
6
  License: PostgreSQL
@@ -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.1"
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) == str # noqa: E721
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) == str # noqa: E721
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) == str # noqa: E721
31
- assert source is None or type(source) == str # noqa: E721
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) == str # noqa: E721
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) == str # noqa: E721
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) == str # noqa: E721
55
+ assert type(r) is str
56
56
  return r
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testgres.common
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: Testgres common code
5
5
  Author-email: Postgres Professional <testgres@postgrespro.ru>
6
6
  License: PostgreSQL
File without changes