Skip to content

Commit 03d8f96

Browse files
author
vshepard
committed
Add testgres.plugins to setup
1 parent 48f9892 commit 03d8f96

File tree

7 files changed

+11
-4
lines changed

7 files changed

+11
-4
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
setup(
3030
version='1.9.2',
3131
name='testgres',
32-
packages=['testgres', 'testgres.operations'],
32+
packages=['testgres', 'testgres.operations', 'testgres.plugins.probackup', 'testgres.plugins.probackup.storage'],
3333
description='Testing utility for PostgreSQL and its extensions',
3434
url='https://github.com/postgrespro/testgres',
3535
long_description=readme,

testgres/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
from .operations.os_ops import OsOperations, ConnectionParams
5252
from .operations.local_ops import LocalOperations
5353
from .operations.remote_ops import RemoteOperations
54+
from .plugins.probackup.gdb import GDBobj
55+
from .plugins.probackup.app import ProbackupApp
56+
from .plugins.probackup.app import ProbackupException
57+
from .plugins.probackup.init_helpers import init_params
58+
from .plugins.probackup.storage.fs_backup import FSTestBackupDir
5459

5560
__all__ = [
5661
"get_new_node",
@@ -63,5 +68,6 @@
6368
"PostgresNode", "NodeApp",
6469
"reserve_port", "release_port", "bound_ports", "get_bin_path", "get_pg_config", "get_pg_version",
6570
"First", "Any",
66-
"OsOperations", "LocalOperations", "RemoteOperations", "ConnectionParams"
71+
"OsOperations", "LocalOperations", "RemoteOperations", "ConnectionParams",
72+
"init_params", "FSTestBackupDir", "ProbackupException", "ProbackupApp", "GDBobj"
6773
]

testgres/plugins/__init__.py

Whitespace-only changes.

testgres/plugins/probackup/__init__.py

Whitespace-only changes.

testgres/plugins/probackup/init_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def __init__(self):
7373
test_env['LC_TIME'] = 'C'
7474
self._test_env = test_env
7575

76-
helpers_path = os.path.dirname(os.path.realpath(__file__))
76+
# Get the directory from which the script was executed
77+
helpers_path = os.getcwd()
7778
self.tests_source_path = os.path.abspath(
7879
os.path.join(helpers_path, os.pardir)
7980
)

testgres/plugins/probackup/storage/__init__.py

Whitespace-only changes.

testgres/plugins/probackup/storage/fs_backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import shutil
66

7-
from plugins.probackup.init_helpers import init_params
7+
from testgres.plugins.probackup.init_helpers import init_params
88

99

1010
class TestBackupDir:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy