|
27 | 27 | from servicelib.rabbitmq.rpc_interfaces.async_jobs.async_jobs import ( |
28 | 28 | AsyncJobComposedResult, |
29 | 29 | ) |
| 30 | +from settings_library.redis import RedisSettings |
30 | 31 | from simcore_postgres_database.models.users import UserRole |
31 | 32 | from simcore_service_webserver._meta import api_version_prefix |
32 | 33 | from simcore_service_webserver.application_settings import get_application_settings |
|
40 | 41 |
|
41 | 42 | @pytest.fixture |
42 | 43 | def app_environment( |
43 | | - app_environment: EnvVarsDict, monkeypatch: pytest.MonkeyPatch |
| 44 | + use_in_memory_redis: RedisSettings, |
| 45 | + app_environment: EnvVarsDict, |
| 46 | + monkeypatch: pytest.MonkeyPatch, |
44 | 47 | ) -> EnvVarsDict: |
45 | 48 | envs_plugins = setenvs_from_dict( |
46 | 49 | monkeypatch, |
@@ -91,6 +94,7 @@ def _standard_user_role_response() -> ( |
91 | 94 |
|
92 | 95 | @pytest.mark.parametrize(*_standard_user_role_response()) |
93 | 96 | async def test_copying_large_project_and_aborting_correctly_removes_new_project( |
| 97 | + mock_dynamic_scheduler: None, |
94 | 98 | client: TestClient, |
95 | 99 | logged_user: dict[str, Any], |
96 | 100 | primary_group: dict[str, str], |
@@ -142,6 +146,7 @@ async def test_copying_large_project_and_aborting_correctly_removes_new_project( |
142 | 146 |
|
143 | 147 | @pytest.mark.parametrize(*_standard_user_role_response()) |
144 | 148 | async def test_copying_large_project_and_retrieving_copy_task( |
| 149 | + mock_dynamic_scheduler: None, |
145 | 150 | client: TestClient, |
146 | 151 | logged_user: dict[str, Any], |
147 | 152 | primary_group: dict[str, str], |
@@ -296,6 +301,7 @@ async def test_copying_too_large_project_returns_422( |
296 | 301 | ): |
297 | 302 | assert client.app |
298 | 303 | app_settings = get_application_settings(client.app) |
| 304 | + assert app_settings.WEBSERVER_PROJECTS |
299 | 305 | large_project_total_size = ( |
300 | 306 | app_settings.WEBSERVER_PROJECTS.PROJECTS_MAX_COPY_SIZE_BYTES + 1 |
301 | 307 | ) |
|
0 commit comments