Skip to content

Commit

Permalink
Change skos:prefLabel to dcterms:title in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Cossu committed Apr 23, 2018
1 parent e2809f0 commit 7201489
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/endpoints/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ def test_query_non_root(self):
Query non-root resources.
"""
put_resp = self.client.put('/ldp/test_term_search',
data=b'<> <http://www.w3.org/2004/02/skos/core#prefLabel> "Hello" .',
data=b'<> <http://purl.org/dc/terms/title> "Hello" .',
content_type='text/turtle')
assert put_resp.status_code == 201
self.client.get('/ldp')
rsp = self.client.post(
'/query/term_search', data=json.dumps({
'logic': 'and',
'terms': [{
'pred': 'skos:prefLabel',
'pred': 'dcterms:title',
'op': '_id',
'val': '"Hello"',
}],
Expand Down Expand Up @@ -80,7 +80,7 @@ def test_query_string_eq(self):
'/query/term_search', data=json.dumps({
'logic': 'and',
'terms': [{
'pred': 'skos:prefLabel',
'pred': 'dcterms:title',
'op': '=',
'val': 'Hello',
}],
Expand All @@ -98,7 +98,7 @@ def test_query_string_neq(self):
'/query/term_search', data=json.dumps({
'logic': 'and',
'terms': [{
'pred': 'skos:prefLabel',
'pred': 'dcterms:title',
'op': '!=',
'val': 'Repository Root',
}],
Expand Down Expand Up @@ -140,7 +140,7 @@ def test_query_multi_term_and(self):
'val': 'ldp:Container',
},
{
'pred': 'skos:prefLabel',
'pred': 'dcterms:title',
'op': '=',
'val': 'Hello',
},
Expand All @@ -165,7 +165,7 @@ def test_query_multi_term_or(self):
'val': 'ldp:Container',
},
{
'pred': 'skos:prefLabel',
'pred': 'dcterms:title',
'op': '=',
'val': 'Hello',
},
Expand Down

0 comments on commit 7201489

Please sign in to comment.