openmodule-test 13.3.0__tar.gz → 13.5.0__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.
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/AUTHORS +1 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/ChangeLog +12 -15
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/PKG-INFO +1 -1
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/database.py +16 -1
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/openmodule_test.egg-info/PKG-INFO +1 -1
- openmodule_test-13.5.0/openmodule_test.egg-info/pbr.json +1 -0
- openmodule_test-13.3.0/openmodule_test.egg-info/pbr.json +0 -1
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/__init__.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/alert.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/connection_status.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/core.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/eventlistener.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/files.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/gate.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/health.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/interrupt.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/io_simulator.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/openmodule_test.egg-info/SOURCES.txt +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/openmodule_test.egg-info/dependency_links.txt +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/openmodule_test.egg-info/not-zip-safe +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/openmodule_test.egg-info/requires.txt +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/openmodule_test.egg-info/top_level.txt +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/package_reader.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/presence.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/requirements.txt +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/rpc.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/settings.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/setup.cfg +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/setup.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/utils.py +0 -0
- {openmodule_test-13.3.0 → openmodule_test-13.5.0}/zeromq.py +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Kevin Koller <k.koller@accessio.at>
|
|
2
2
|
Kevin Koller <k.koller@arivo.co>
|
|
3
3
|
Matthias Mietschnig <m.mietschnig@arivo.co>
|
|
4
|
+
Maximilian Bialek <m.bialek@arivo.co>
|
|
4
5
|
Philipp Reitter <i@philipp.ninja>
|
|
5
6
|
Philipp Reitter <p.reitter@accessio.at>
|
|
6
7
|
Philipp Reitter <p.reitter@gmail.com>
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
CHANGES
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
+
v13.5.0
|
|
5
|
+
-------
|
|
6
|
+
|
|
7
|
+
* document breaking changes
|
|
8
|
+
* OM-405: remove database imports from non-database services + isolate migration process to exclude alembic import in the main process
|
|
9
|
+
|
|
10
|
+
v13.4.0
|
|
11
|
+
-------
|
|
12
|
+
|
|
13
|
+
* Om 164: settings-models update for enforcment settings changes
|
|
14
|
+
|
|
4
15
|
v13.3.0
|
|
5
16
|
-------
|
|
6
17
|
|
|
@@ -11,6 +22,7 @@ v13.2.0
|
|
|
11
22
|
|
|
12
23
|
* OM 187 Alembic migration test mixin
|
|
13
24
|
* add a testcase for expiring session data while adding new models (noticed in OM-327)
|
|
25
|
+
* OM-184 Openmodule Database: Migration Backups and Fix in Operations "pre\_downgrade()" and "post\_downgrade()"
|
|
14
26
|
* Aktualisierung der Dokumentation
|
|
15
27
|
* OM-255
|
|
16
28
|
|
|
@@ -152,12 +164,6 @@ v11.1.0.rc5
|
|
|
152
164
|
-----------
|
|
153
165
|
|
|
154
166
|
* again no language set in testing
|
|
155
|
-
|
|
156
|
-
v11.1.0.rc4
|
|
157
|
-
-----------
|
|
158
|
-
|
|
159
|
-
* arivo-schedule in public pip
|
|
160
|
-
* use temporary arivo-schedule package
|
|
161
167
|
* removed mock rpcs from schema
|
|
162
168
|
|
|
163
169
|
v11.0.3
|
|
@@ -209,12 +215,3 @@ v10.0.2.rc1
|
|
|
209
215
|
-----------
|
|
210
216
|
|
|
211
217
|
* Refactor for backend class for controller v2
|
|
212
|
-
|
|
213
|
-
v10.0.1
|
|
214
|
-
-------
|
|
215
|
-
|
|
216
|
-
* fix for ondelete=CASCADE database migration problem
|
|
217
|
-
|
|
218
|
-
v10.0.0
|
|
219
|
-
-------
|
|
220
|
-
|
|
@@ -9,7 +9,10 @@ from sqlalchemy import MetaData
|
|
|
9
9
|
from sqlalchemy.ext.automap import automap_base
|
|
10
10
|
|
|
11
11
|
from openmodule.config import settings
|
|
12
|
-
from openmodule.database.database import Database, database_path
|
|
12
|
+
from openmodule.database.database import Database, database_path
|
|
13
|
+
from openmodule.database.migration import alembic_config
|
|
14
|
+
|
|
15
|
+
from unittest.mock import patch
|
|
13
16
|
|
|
14
17
|
_first_start = True
|
|
15
18
|
|
|
@@ -37,6 +40,7 @@ class SQLiteTestMixin(TestCase):
|
|
|
37
40
|
database_folder: str = None # defaults to settings.DATABASE_FOLDER
|
|
38
41
|
alembic_path = "../src/database"
|
|
39
42
|
database_name = "database"
|
|
43
|
+
main_process_migration = True # change if migration should be performed in a separate process
|
|
40
44
|
|
|
41
45
|
@classmethod
|
|
42
46
|
def get_database_folder(cls):
|
|
@@ -44,6 +48,15 @@ class SQLiteTestMixin(TestCase):
|
|
|
44
48
|
|
|
45
49
|
@classmethod
|
|
46
50
|
def setUpClass(cls) -> None:
|
|
51
|
+
if cls.main_process_migration is True:
|
|
52
|
+
from openmodule.database.migration import migrate_database
|
|
53
|
+
# instead of migrating db in a child process we 'mock' it in the main process to prevent some errors
|
|
54
|
+
cls.patcher = patch(
|
|
55
|
+
'openmodule.database.database.execute_migration',
|
|
56
|
+
new=lambda x, y: migrate_database(x, y)
|
|
57
|
+
)
|
|
58
|
+
cls.patcher.start()
|
|
59
|
+
|
|
47
60
|
# we only know which databases are in use on tear down, so truncating only works in teardown
|
|
48
61
|
# but in order to not be annoyed by failed tests which left broken databases, we delete all databases
|
|
49
62
|
# once initially
|
|
@@ -75,6 +88,8 @@ class SQLiteTestMixin(TestCase):
|
|
|
75
88
|
cls.database.shutdown()
|
|
76
89
|
os.unlink(database_path(cls.get_database_folder(), cls.database_name))
|
|
77
90
|
super().tearDownClass()
|
|
91
|
+
if cls.main_process_migration is True:
|
|
92
|
+
cls.patcher.stop()
|
|
78
93
|
|
|
79
94
|
|
|
80
95
|
class AlembicMigrationTestMixin(SQLiteTestMixin):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "84be0cd", "is_release": true}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "4623c40", "is_release": true}
|
|
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
|
{openmodule_test-13.3.0 → openmodule_test-13.5.0}/openmodule_test.egg-info/dependency_links.txt
RENAMED
|
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
|