testgres.common 1.0.0__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.0
3
+ Version: 1.0.2
4
4
  Summary: Testgres common code
5
5
  Author-email: Postgres Professional <testgres@postgrespro.ru>
6
6
  License: PostgreSQL
@@ -19,12 +19,12 @@ Classifier: Programming Language :: Python :: 3.13
19
19
  Classifier: Programming Language :: Python :: 3.14
20
20
  Classifier: Topic :: Software Development :: Libraries
21
21
  Classifier: Topic :: Software Development :: Testing
22
- Requires-Python: >=3.7.17
22
+ Requires-Python: >=3.7.3
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
25
  Dynamic: license-file
26
26
 
27
- [![Build Status](https://app.travis-ci.com/postgrespro/testgres.common.svg?token=HgEMhyw9n7RCQkHCis4T&branch=master)](https://app.travis-ci.com/postgrespro/testgres.common)
27
+ [![CI Status](https://img.shields.io/github/actions/workflow/status/postgrespro/testgres.common/.github/workflows/package-verification.yml?label=CI)](https://github.com/postgrespro/testgres.common/actions/workflows/package-verification.yml)
28
28
  [![PyPI package version](https://badge.fury.io/py/testgres_common.svg)](https://badge.fury.io/py/testgres.common)
29
29
  [![PyPI python versions](https://img.shields.io/pypi/pyversions/testgres_common)](https://pypi.org/project/testgres.common)
30
30
  [![PyPI downloads](https://img.shields.io/pypi/dm/testgres_common)](https://pypi.org/project/testgres.common)
@@ -1,4 +1,4 @@
1
- [![Build Status](https://app.travis-ci.com/postgrespro/testgres.common.svg?token=HgEMhyw9n7RCQkHCis4T&branch=master)](https://app.travis-ci.com/postgrespro/testgres.common)
1
+ [![CI Status](https://img.shields.io/github/actions/workflow/status/postgrespro/testgres.common/.github/workflows/package-verification.yml?label=CI)](https://github.com/postgrespro/testgres.common/actions/workflows/package-verification.yml)
2
2
  [![PyPI package version](https://badge.fury.io/py/testgres_common.svg)](https://badge.fury.io/py/testgres.common)
3
3
  [![PyPI python versions](https://img.shields.io/pypi/pyversions/testgres_common)](https://pypi.org/project/testgres.common)
4
4
  [![PyPI downloads](https://img.shields.io/pypi/dm/testgres_common)](https://pypi.org/project/testgres.common)
@@ -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.0"
22
+ version = "1.0.2"
15
23
 
16
24
  description = "Testgres common code"
17
25
  readme = "README.md"
@@ -28,7 +36,7 @@ keywords = [
28
36
  'testgres',
29
37
  ]
30
38
 
31
- requires-python = ">=3.7.17"
39
+ requires-python = ">=3.7.3"
32
40
 
33
41
  classifiers = [
34
42
  "Intended Audience :: Developers",
@@ -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.0
3
+ Version: 1.0.2
4
4
  Summary: Testgres common code
5
5
  Author-email: Postgres Professional <testgres@postgrespro.ru>
6
6
  License: PostgreSQL
@@ -19,12 +19,12 @@ Classifier: Programming Language :: Python :: 3.13
19
19
  Classifier: Programming Language :: Python :: 3.14
20
20
  Classifier: Topic :: Software Development :: Libraries
21
21
  Classifier: Topic :: Software Development :: Testing
22
- Requires-Python: >=3.7.17
22
+ Requires-Python: >=3.7.3
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
25
  Dynamic: license-file
26
26
 
27
- [![Build Status](https://app.travis-ci.com/postgrespro/testgres.common.svg?token=HgEMhyw9n7RCQkHCis4T&branch=master)](https://app.travis-ci.com/postgrespro/testgres.common)
27
+ [![CI Status](https://img.shields.io/github/actions/workflow/status/postgrespro/testgres.common/.github/workflows/package-verification.yml?label=CI)](https://github.com/postgrespro/testgres.common/actions/workflows/package-verification.yml)
28
28
  [![PyPI package version](https://badge.fury.io/py/testgres_common.svg)](https://badge.fury.io/py/testgres.common)
29
29
  [![PyPI python versions](https://img.shields.io/pypi/pyversions/testgres_common)](https://pypi.org/project/testgres.common)
30
30
  [![PyPI downloads](https://img.shields.io/pypi/dm/testgres_common)](https://pypi.org/project/testgres.common)
File without changes