openmodule-test 13.4.0__tar.gz → 13.6.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.
Files changed (31) hide show
  1. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/AUTHORS +1 -0
  2. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/ChangeLog +12 -19
  3. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/PKG-INFO +1 -1
  4. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/database.py +16 -1
  5. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/openmodule_test.egg-info/PKG-INFO +1 -1
  6. openmodule_test-13.6.0/openmodule_test.egg-info/pbr.json +1 -0
  7. openmodule_test-13.4.0/openmodule_test.egg-info/pbr.json +0 -1
  8. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/__init__.py +0 -0
  9. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/alert.py +0 -0
  10. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/connection_status.py +0 -0
  11. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/core.py +0 -0
  12. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/eventlistener.py +0 -0
  13. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/files.py +0 -0
  14. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/gate.py +0 -0
  15. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/health.py +0 -0
  16. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/interrupt.py +0 -0
  17. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/io_simulator.py +0 -0
  18. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/openmodule_test.egg-info/SOURCES.txt +0 -0
  19. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/openmodule_test.egg-info/dependency_links.txt +0 -0
  20. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/openmodule_test.egg-info/not-zip-safe +0 -0
  21. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/openmodule_test.egg-info/requires.txt +0 -0
  22. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/openmodule_test.egg-info/top_level.txt +0 -0
  23. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/package_reader.py +0 -0
  24. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/presence.py +0 -0
  25. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/requirements.txt +0 -0
  26. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/rpc.py +0 -0
  27. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/settings.py +0 -0
  28. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/setup.cfg +0 -0
  29. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/setup.py +0 -0
  30. {openmodule_test-13.4.0 → openmodule_test-13.6.0}/utils.py +0 -0
  31. {openmodule_test-13.4.0 → openmodule_test-13.6.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.6.0
5
+ -------
6
+
7
+ * OM-697 OpenModule Verbesserungen
8
+
9
+ v13.5.0
10
+ -------
11
+
12
+ * document breaking changes
13
+ * OM-405: remove database imports from non-database services + isolate migration process to exclude alembic import in the main process
14
+
4
15
  v13.4.0
5
16
  -------
6
17
 
@@ -16,6 +27,7 @@ v13.2.0
16
27
 
17
28
  * OM 187 Alembic migration test mixin
18
29
  * add a testcase for expiring session data while adding new models (noticed in OM-327)
30
+ * OM-184 Openmodule Database: Migration Backups and Fix in Operations "pre\_downgrade()" and "post\_downgrade()"
19
31
  * Aktualisierung der Dokumentation
20
32
  * OM-255
21
33
 
@@ -152,16 +164,6 @@ v11.1.0
152
164
  -------
153
165
 
154
166
  * csv export library, databox upload and schedule library tips
155
-
156
- v11.1.0.rc5
157
- -----------
158
-
159
- * again no language set in testing
160
-
161
- v11.1.0.rc4
162
- -----------
163
-
164
- * arivo-schedule in public pip
165
167
  * removed mock rpcs from schema
166
168
 
167
169
  v11.0.3
@@ -208,12 +210,3 @@ v10.0.2.rc2
208
210
 
209
211
  * added more documentation [skip ci]
210
212
  * fixes an issue in the multiprocessing\_logging package in testcases
211
-
212
- v10.0.2.rc1
213
- -----------
214
-
215
- * Refactor for backend class for controller v2
216
-
217
- v10.0.1
218
- -------
219
-
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openmodule_test
3
- Version: 13.4.0
3
+ Version: 13.6.0
4
4
  Summary: Libraries for testing openmodule services
5
5
  Home-page: https://gitlab.com/arivo-public/device-python/openmodule.git
6
6
  Author: ARIVO
@@ -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, alembic_config
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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openmodule-test
3
- Version: 13.4.0
3
+ Version: 13.6.0
4
4
  Summary: Libraries for testing openmodule services
5
5
  Home-page: https://gitlab.com/arivo-public/device-python/openmodule.git
6
6
  Author: ARIVO
@@ -0,0 +1 @@
1
+ {"git_version": "973c6b2", "is_release": true}
@@ -1 +0,0 @@
1
- {"git_version": "893e163", "is_release": true}