Browse Source

Apply namespace changes to tests.

Stefano Cossu 4 years ago
parent
commit
bfe33faba7
2 changed files with 3 additions and 3 deletions
  1. 2 2
      tests/3_endpoints/test_3_2_query.py
  2. 1 1
      tests/data/rdf_payload_w_srv_mgd_trp.ttl

+ 2 - 2
tests/3_endpoints/test_3_2_query.py

@@ -116,9 +116,9 @@ class TestTermSearch:
             '/query/term_search', data=json.dumps({
                 'logic': 'and',
                 'terms': [{
-                    'pred': '<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ',
+                    'pred': f'<{nsc["rdf"].type}> ',
                     'op': '_id',
-                    'val': '<http://fedora.info/definitions/v4/repository#RepositoryRoot>',
+                    'val': f'<{nsc["fcrepo"].RepositoryRoot}>',
                 }],
             }), content_type='application/json')
 

+ 1 - 1
tests/data/rdf_payload_w_srv_mgd_trp.ttl

@@ -1,5 +1,5 @@
 @prefix dc: <http://purl.org/dc/elements/1.1/> .
-@prefix fcrepo: <http://fedora.info/definitions/v4/repository#> .
+@prefix fcrepo: <http://fedora.info/definitions/fcrepo#> .
 @prefix ns: <http://example.edu/ns#> .
 @prefix skos: <http://www.w3.org/2004/02/skos/core#> .
 @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .