From aea18ad539df3f04537e2e3655adf3cf11b1a472 Mon Sep 17 00:00:00 2001 From: Alzbeta Pokorna Date: Tue, 7 Jan 2025 12:53:03 +0100 Subject: [PATCH 1/2] delete unauth test --- oarepo_model_builder_tests/templates/test_resource.py.jinja2 | 5 ----- setup.cfg | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/oarepo_model_builder_tests/templates/test_resource.py.jinja2 b/oarepo_model_builder_tests/templates/test_resource.py.jinja2 index 3cec9cc..2add266 100644 --- a/oarepo_model_builder_tests/templates/test_resource.py.jinja2 +++ b/oarepo_model_builder_tests/templates/test_resource.py.jinja2 @@ -74,11 +74,6 @@ def test_create( created_responses.append( client_with_credentials.post(f"{base_urls['base_url']}", json=sample_metadata_point) ) - with app.test_client() as unauth_client: - unauth_response = unauth_client.post( - f"{base_urls['base_url']}", json=sample_metadata_point - ) - assert response_code_ok("create", False, unauth_response, 201) assert all( [ response_code_ok("create", True, new_response, 201) diff --git a/setup.cfg b/setup.cfg index e88c9bc..faaa2bb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = oarepo-model-builder-tests -version = 4.0.8 +version = 4.0.9 description = authors = Ronald Krist readme = README.md From 7b469eef4c6f5118648e84dc1f6b38529c8aafcf Mon Sep 17 00:00:00 2001 From: Alzbeta Pokorna Date: Tue, 7 Jan 2025 12:57:31 +0100 Subject: [PATCH 2/2] rdm user moderation not enabled --- oarepo_model_builder_tests/templates/conftest.py.jinja2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oarepo_model_builder_tests/templates/conftest.py.jinja2 b/oarepo_model_builder_tests/templates/conftest.py.jinja2 index 311d773..e39c22d 100644 --- a/oarepo_model_builder_tests/templates/conftest.py.jinja2 +++ b/oarepo_model_builder_tests/templates/conftest.py.jinja2 @@ -34,7 +34,7 @@ APP_CONFIG = { "CACHE_TYPE": "SimpleCache", # Flask-Caching related configs "CACHE_DEFAULT_TIMEOUT": 300, "RDM_PERSISTENT_IDENTIFIERS": {}, - "RDM_USER_MODERATION_ENABLED": True, + "RDM_USER_MODERATION_ENABLED": False, "RDM_RECORDS_ALLOW_RESTRICTION_AFTER_GRACE_PERIOD": False }