[tracker-miners/wip/carlosg/test-fixes: 3/5] functional-tests: Ensure we delete data from the graph
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/test-fixes: 3/5] functional-tests: Ensure we delete data from the graph
- Date: Sat, 7 Dec 2019 15:46:24 +0000 (UTC)
commit fde50424834e905d875f69bd1dea24c8ec0717ad
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Nov 30 11:39:24 2019 +0100
functional-tests: Ensure we delete data from the graph
Deletes with no graph just affect the unnamed graph, but this query
should delete from named graphs instead.
tests/functional-tests/410-extractor-decorator.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/functional-tests/410-extractor-decorator.py
b/tests/functional-tests/410-extractor-decorator.py
index 67a76e796..f6f496d67 100755
--- a/tests/functional-tests/410-extractor-decorator.py
+++ b/tests/functional-tests/410-extractor-decorator.py
@@ -53,8 +53,8 @@ class ExtractorDecoratorTest(minertest.CommonTrackerMinerTest):
# (Writeback must be disabled in the config so that the file
# itself is not changed).
store.update(
- 'DELETE { <%s> nie:title ?title }'
- ' WHERE { <%s> nie:title ?title }' % (file_urn, file_urn))
+ 'DELETE { GRAPH ?g { <%s> nie:title ?title } }'
+ ' WHERE { GRAPH ?g { <%s> nie:title ?title } }' % (file_urn, file_urn))
store.await_property_changed(VALID_FILE_CLASS, file_id, 'nie:title')
assert not store.ask('ASK { <%s> nie:title ?title }' % file_urn)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]