From 519798d63fc3f09a7481eaa316272fffb8dae2e2 Mon Sep 17 00:00:00 2001 From: Abram Booth Date: Fri, 4 Aug 2023 10:22:27 -0400 Subject: [PATCH] constant schema url for test --- .../expected_metadata_files/registration_basic.turtle | 4 ++-- .../metadata/expected_metadata_files/registration_full.turtle | 4 ++-- osf_tests/metadata/test_serialized_metadata.py | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/osf_tests/metadata/expected_metadata_files/registration_basic.turtle b/osf_tests/metadata/expected_metadata_files/registration_basic.turtle index b2ce907e76c..92930b5d7ab 100644 --- a/osf_tests/metadata/expected_metadata_files/registration_basic.turtle +++ b/osf_tests/metadata/expected_metadata_files/registration_basic.turtle @@ -4,7 +4,7 @@ @prefix owl: . a osf:Registration ; - dcterms:conformsTo ; + dcterms:conformsTo ; dcterms:created "2123-05-04" ; dcterms:creator ; dcterms:dateCopyrighted "2252" ; @@ -42,4 +42,4 @@ dcterms:identifier "http://localhost:5000" ; foaf:name "OSF" . - dcterms:title "Open-Ended Registration" . \ No newline at end of file + dcterms:title "Open-Ended Registration" . \ No newline at end of file diff --git a/osf_tests/metadata/expected_metadata_files/registration_full.turtle b/osf_tests/metadata/expected_metadata_files/registration_full.turtle index d9a156c35c9..768e4b888cf 100644 --- a/osf_tests/metadata/expected_metadata_files/registration_full.turtle +++ b/osf_tests/metadata/expected_metadata_files/registration_full.turtle @@ -4,7 +4,7 @@ @prefix owl: . a osf:Registration ; - dcterms:conformsTo ; + dcterms:conformsTo ; dcterms:created "2123-05-04" ; dcterms:creator ; dcterms:dateCopyrighted "2250-2254" ; @@ -46,4 +46,4 @@ dcterms:identifier "http://localhost:5000" ; foaf:name "OSF" . - dcterms:title "Open-Ended Registration" . \ No newline at end of file + dcterms:title "Open-Ended Registration" . \ No newline at end of file diff --git a/osf_tests/metadata/test_serialized_metadata.py b/osf_tests/metadata/test_serialized_metadata.py index a2815970b4b..2f9aee45de6 100644 --- a/osf_tests/metadata/test_serialized_metadata.py +++ b/osf_tests/metadata/test_serialized_metadata.py @@ -118,7 +118,8 @@ def setUp(self): for patcher in ( mock.patch('osf.models.base.generate_guid', new=osfguid_sequence), mock.patch('osf.models.base.Guid.objects.get_or_create', new=osfguid_sequence.get_or_create), - mock.patch('django.utils.timezone.now', new=forever_now) + mock.patch('django.utils.timezone.now', new=forever_now), + mock.patch('osf.models.metaschema.RegistrationSchema.absolute_api_v2_url', new='http://fake.example/schema/for/test'), ): patcher.start() self.addCleanup(patcher.stop)