Skip to content

Commit

Permalink
constant schema url for test
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Aug 4, 2023
1 parent d2d0cb6 commit 519798d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@prefix owl: <http://www.w3.org/2002/07/owl#> .

<http://localhost:5000/w5ibb> a osf:Registration ;
dcterms:conformsTo <http://localhost:8000/v2/schemas/registrations/63d3f6c7dcb7b30226be52a9/> ;
dcterms:conformsTo <http://fake.example/schema/for/test> ;
dcterms:created "2123-05-04" ;
dcterms:creator <http://localhost:5000/w1ibb> ;
dcterms:dateCopyrighted "2252" ;
Expand Down Expand Up @@ -42,4 +42,4 @@
dcterms:identifier "http://localhost:5000" ;
foaf:name "OSF" .

<http://localhost:8000/v2/schemas/registrations/63d3f6c7dcb7b30226be52a9/> dcterms:title "Open-Ended Registration" .
<http://fake.example/schema/for/test> dcterms:title "Open-Ended Registration" .
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@prefix owl: <http://www.w3.org/2002/07/owl#> .

<http://localhost:5000/w5ibb> a osf:Registration ;
dcterms:conformsTo <http://localhost:8000/v2/schemas/registrations/63d3f6c7dcb7b30226be52a9/> ;
dcterms:conformsTo <http://fake.example/schema/for/test> ;
dcterms:created "2123-05-04" ;
dcterms:creator <http://localhost:5000/w1ibb> ;
dcterms:dateCopyrighted "2250-2254" ;
Expand Down Expand Up @@ -46,4 +46,4 @@
dcterms:identifier "http://localhost:5000" ;
foaf:name "OSF" .

<http://localhost:8000/v2/schemas/registrations/63d3f6c7dcb7b30226be52a9/> dcterms:title "Open-Ended Registration" .
<http://fake.example/schema/for/test> dcterms:title "Open-Ended Registration" .
3 changes: 2 additions & 1 deletion osf_tests/metadata/test_serialized_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 519798d

Please sign in to comment.