testgres 1.13.6__tar.gz → 1.13.7__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-1.13.6/testgres.egg-info → testgres-1.13.7}/PKG-INFO +1 -1
- {testgres-1.13.6 → testgres-1.13.7}/pyproject.toml +4 -1
- {testgres-1.13.6 → testgres-1.13.7}/src/__init__.py +2 -0
- {testgres-1.13.6 → testgres-1.13.7/testgres.egg-info}/PKG-INFO +1 -1
- {testgres-1.13.6 → testgres-1.13.7}/tests/test_testgres_common.py +16 -0
- {testgres-1.13.6 → testgres-1.13.7}/LICENSE +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/README.md +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/setup.cfg +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/api.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/backup.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/cache.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/config.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/connection.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/consts.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/decorators.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/defaults.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/enums.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/exceptions.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/impl/internal_utils.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/impl/platforms/internal_platform_utils.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/impl/platforms/internal_platform_utils_factory.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/impl/platforms/linux/internal_platform_utils.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/impl/platforms/win32/internal_platform_utils.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/impl/port_manager__generic.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/impl/port_manager__this_host.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/logger.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/node.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/node_app.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/port_manager.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/pubsub.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/raise_error.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/standby.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/src/utils.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/testgres.egg-info/SOURCES.txt +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/testgres.egg-info/dependency_links.txt +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/testgres.egg-info/requires.txt +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/testgres.egg-info/top_level.txt +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/tests/test_config.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/tests/test_os_ops_common.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/tests/test_os_ops_local.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/tests/test_os_ops_remote.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/tests/test_raise_error.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/tests/test_testgres_local.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/tests/test_testgres_remote.py +0 -0
- {testgres-1.13.6 → testgres-1.13.7}/tests/test_utils.py +0 -0
|
@@ -5,6 +5,9 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[tool.setuptools.package-dir]
|
|
6
6
|
"testgres" = "src"
|
|
7
7
|
|
|
8
|
+
[tool.setuptools.dynamic]
|
|
9
|
+
version = {attr = "testgres.__version__"}
|
|
10
|
+
|
|
8
11
|
[tool.flake8]
|
|
9
12
|
extend-ignore = ["E501"]
|
|
10
13
|
exclude = [".git", "__pycache__", "env", "venv"]
|
|
@@ -19,7 +22,7 @@ log_file_date_format = "%Y-%m-%d %H:%M:%S"
|
|
|
19
22
|
|
|
20
23
|
[project]
|
|
21
24
|
name = "testgres"
|
|
22
|
-
|
|
25
|
+
dynamic = ["version"]
|
|
23
26
|
|
|
24
27
|
description = "Testing utility for PostgreSQL and its extensions"
|
|
25
28
|
readme = "README.md"
|
|
@@ -56,6 +56,8 @@ from testgres.operations.os_ops import OsOperations, ConnectionParams
|
|
|
56
56
|
from testgres.operations.local_ops import LocalOperations
|
|
57
57
|
from testgres.operations.remote_ops import RemoteOperations
|
|
58
58
|
|
|
59
|
+
__version__ = "1.13.7"
|
|
60
|
+
|
|
59
61
|
__all__ = [
|
|
60
62
|
"get_new_node",
|
|
61
63
|
"get_remote_node",
|
|
@@ -5,6 +5,7 @@ from .helpers.global_data import PostgresNodeServices
|
|
|
5
5
|
from .helpers.global_data import OsOperations
|
|
6
6
|
from .helpers.global_data import PortManager
|
|
7
7
|
|
|
8
|
+
from src import __version__ as testgres_version
|
|
8
9
|
from src.node import PgVer
|
|
9
10
|
from src.node import PostgresNode
|
|
10
11
|
from src.node import NodeConnection
|
|
@@ -51,6 +52,8 @@ import typing
|
|
|
51
52
|
import types
|
|
52
53
|
import psutil
|
|
53
54
|
|
|
55
|
+
from packaging.version import Version
|
|
56
|
+
|
|
54
57
|
|
|
55
58
|
@contextmanager
|
|
56
59
|
def removing(os_ops: OsOperations, f):
|
|
@@ -84,6 +87,19 @@ class TestTestgresCommon:
|
|
|
84
87
|
assert isinstance(request.param.port_manager, PortManager)
|
|
85
88
|
return request.param
|
|
86
89
|
|
|
90
|
+
def test_testgres_version(self):
|
|
91
|
+
assert type(testgres_version) is str
|
|
92
|
+
|
|
93
|
+
v = Version(testgres_version)
|
|
94
|
+
|
|
95
|
+
# Author: Mark G.
|
|
96
|
+
assert v.major == 1
|
|
97
|
+
assert v.minor == 13
|
|
98
|
+
assert v.micro == 7
|
|
99
|
+
|
|
100
|
+
assert str(v) == testgres_version
|
|
101
|
+
return
|
|
102
|
+
|
|
87
103
|
def test_version_management(self, node_svc: PostgresNodeService):
|
|
88
104
|
assert isinstance(node_svc, PostgresNodeService)
|
|
89
105
|
|
|
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
|