yhttp-dev 3.1.0__tar.gz → 3.1.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.
- {yhttp_dev-3.1.0 → yhttp_dev-3.1.2}/PKG-INFO +1 -1
- yhttp_dev-3.1.2/yhttp/dev/__init__.py +1 -0
- {yhttp_dev-3.1.0 → yhttp_dev-3.1.2}/yhttp/dev/fixtures.py +6 -6
- {yhttp_dev-3.1.0 → yhttp_dev-3.1.2}/yhttp_dev.egg-info/PKG-INFO +1 -1
- yhttp_dev-3.1.0/yhttp/dev/__init__.py +0 -1
- {yhttp_dev-3.1.0 → yhttp_dev-3.1.2}/LICENSE +0 -0
- {yhttp_dev-3.1.0 → yhttp_dev-3.1.2}/README.md +0 -0
- {yhttp_dev-3.1.0 → yhttp_dev-3.1.2}/setup.cfg +0 -0
- {yhttp_dev-3.1.0 → yhttp_dev-3.1.2}/setup.py +0 -0
- {yhttp_dev-3.1.0 → yhttp_dev-3.1.2}/yhttp_dev.egg-info/SOURCES.txt +0 -0
- {yhttp_dev-3.1.0 → yhttp_dev-3.1.2}/yhttp_dev.egg-info/dependency_links.txt +0 -0
- {yhttp_dev-3.1.0 → yhttp_dev-3.1.2}/yhttp_dev.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '3.1.2'
|
|
@@ -53,7 +53,7 @@ def mockupfs():
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
@pytest.fixture
|
|
56
|
-
def freshdb():
|
|
56
|
+
def freshdb(cicd):
|
|
57
57
|
""" Creates a fresh database for each test.
|
|
58
58
|
|
|
59
59
|
Default configuration is using peer authentication method on
|
|
@@ -61,14 +61,14 @@ def freshdb():
|
|
|
61
61
|
"""
|
|
62
62
|
from yhttp.ext.dbmanager import PostgresqlManager
|
|
63
63
|
|
|
64
|
-
host = os.environ.get('
|
|
65
|
-
user = os.environ.get('
|
|
66
|
-
|
|
64
|
+
host = os.environ.get('YHTTP_DB_DEFAULT_HOST', 'localhost' if cicd else '')
|
|
65
|
+
user = os.environ.get('YHTTP_DB_DEFAULT_USER', 'postgres' if cicd else '')
|
|
66
|
+
pass_ = os.environ.get('YHTTP_DB_DEFAULT_PASS', 'postgres' if cicd else '')
|
|
67
67
|
|
|
68
68
|
dbname = f'freshdb_{datetime.datetime.now():%Y%m%d%H%M%S}'
|
|
69
|
-
dbmanager = PostgresqlManager(host, 'postgres', user,
|
|
69
|
+
dbmanager = PostgresqlManager(host, 'postgres', user, pass_)
|
|
70
70
|
dbmanager.create(dbname, dropifexists=True)
|
|
71
|
-
freshurl = f'
|
|
71
|
+
freshurl = f'postgresql://{user}:{pass_}@{host}/{dbname}'
|
|
72
72
|
yield freshurl
|
|
73
73
|
dbmanager.dropifexists(dbname)
|
|
74
74
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '3.1.0'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|