Skip to content

Commit

Permalink
chore: minor change for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
djs0109 committed Nov 20, 2024
1 parent e90dd89 commit 20b3912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/clients/test_ngsi_ld_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ def test_ld_query_language(self):
tokenized = tokenized.replace(";"," and ")
size = len([x for x in self.cars if self.search_predicate(x,tokenized,keys_dict)])
#Check we get the same number of entities
self.assertEqual(size,len(entities),q)
self.assertEqual(size,len(entities),msg=q)
for e in entities:
copy = tokenized
for token,keylist in keys_dict.items():
copy = self.sub_key_with_val(copy,e,keylist,token)

#Check each obtained entity obeys the q expression
self.assertTrue(eval(copy),q)
self.assertTrue(eval(copy),msg=q)

def extract_keys(self,q:str):
'''
Expand Down

0 comments on commit 20b3912

Please sign in to comment.