python-ubercode-utils 2.0.5__tar.gz → 2.0.6__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.
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/PKG-INFO +1 -1
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/python_ubercode_utils.egg-info/PKG-INFO +1 -1
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/setup.py +1 -1
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/test/test_environment.py +7 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/ubercode/utils/environment.py +1 -1
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/LICENSE +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/MANIFEST.in +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/README.md +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/python_ubercode_utils.egg-info/SOURCES.txt +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/python_ubercode_utils.egg-info/dependency_links.txt +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/python_ubercode_utils.egg-info/not-zip-safe +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/python_ubercode_utils.egg-info/top_level.txt +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/setup.cfg +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/test/test_convert.py +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/test/test_cursor.py +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/test/test_data.py +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/test/test_dataframe.py +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/test/test_logging.py +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/test/test_urls.py +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/ubercode/__init__.py +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/ubercode/utils/__init__.py +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/ubercode/utils/convert.py +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/ubercode/utils/cursor.py +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/ubercode/utils/data.py +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/ubercode/utils/dataframe.py +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/ubercode/utils/logging.py +0 -0
- {python_ubercode_utils-2.0.5 → python_ubercode_utils-2.0.6}/ubercode/utils/urls.py +0 -0
|
@@ -4,7 +4,7 @@ with open("README.md", "r") as fh:
|
|
|
4
4
|
long_description = fh.read()
|
|
5
5
|
|
|
6
6
|
setuptools.setup(name='python_ubercode_utils',
|
|
7
|
-
version='2.0.
|
|
7
|
+
version='2.0.6',
|
|
8
8
|
description='Core python utilities for all apps',
|
|
9
9
|
long_description=long_description,
|
|
10
10
|
long_description_content_type="text/markdown",
|
|
@@ -109,6 +109,13 @@ class TestEnvironment(unittest.TestCase):
|
|
|
109
109
|
self.assertTrue("Test_************sword" in sout.getvalue())
|
|
110
110
|
# test a None still works for initialization
|
|
111
111
|
self.assertIsNotNone(Environment())
|
|
112
|
+
# bug: test that a missing db gets created instead of failing (threw key error before)
|
|
113
|
+
os_vars = {
|
|
114
|
+
'DATABASES__booger__ENGINE': 'django.db.backends.mysql'
|
|
115
|
+
}
|
|
116
|
+
env2 = Environment(environment_variable_map=os_vars)
|
|
117
|
+
self.assertIsNotNone(env2.override_database_variables(DATABASES))
|
|
118
|
+
|
|
112
119
|
|
|
113
120
|
def test_override_database_urls(self):
|
|
114
121
|
# we will start with the default dict for a new django install
|
|
@@ -199,7 +199,7 @@ class Environment:
|
|
|
199
199
|
_log_from_value = 'None'
|
|
200
200
|
_log_to_value = str(v)
|
|
201
201
|
# we may be setting up a completely new database from scratch so create if it doesn't exist
|
|
202
|
-
if not db_dict
|
|
202
|
+
if not db_dict.get(db_parts[1]):
|
|
203
203
|
self._logger.debug(f'database {db_parts[0]}[{db_parts[1]}] was not found; creating...')
|
|
204
204
|
db_dict[db_parts[1]] = {}
|
|
205
205
|
# we now have db dict; we may not have a property already defined; if not we want to add it
|
|
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
|