Commit 8defa76e authored by Sam Thursfield's avatar Sam Thursfield

functional-tests: Fix 501-writeback-details test

This now passes when running against tracker core commit aa2c2dace5e2dad7
parent 824d83ea
......@@ -86,7 +86,10 @@ class WritebackKeepDateTest (CommonTrackerWritebackTest):
# Check the value is written in the file
metadata = get_tracker_extract_jsonld_output (filename, "")
self.assertIn (self.favorite, metadata ["nao:hasTag"],
tags = metadata.get('nao:hasTag', [])
tag_names = [tag['nao:prefLabel'] for tag in tags]
self.assertIn (self.favorite, tag_names,
"Tag hasn't been written in the file")
# Now check the modification date of the files and it should be the same :)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment