Skip to content

Commit

Permalink
Merge pull request #27 from oarepo/test_only_with_credentials
Browse files Browse the repository at this point in the history
delete unauth test
  • Loading branch information
mesemus authored Jan 7, 2025
2 parents 096e1a3 + 7b469ee commit 3e0ba7a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion oarepo_model_builder_tests/templates/conftest.py.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
5 changes: 0 additions & 5 deletions oarepo_model_builder_tests/templates/test_resource.py.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-model-builder-tests
version = 4.0.8
version = 4.0.9
description =
authors = Ronald Krist <[email protected]>
readme = README.md
Expand Down

0 comments on commit 3e0ba7a

Please sign in to comment.