summaryrefslogtreecommitdiff
path: root/tests/functional-tests
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2020-05-11 01:53:49 +0200
committerSam Thursfield <sam@afuera.me.uk>2020-05-11 02:07:36 +0200
commitf85c08e4b0befbfe034fb0e86c68a6c3eb0f88ee (patch)
tree74de9a49a47f14382e2b79b691b752ecc28af146 /tests/functional-tests
parent72ab6fb759e05a1b0a811fdcd22c924f1c84b5b5 (diff)
downloadtracker-f85c08e4b0befbfe034fb0e86c68a6c3eb0f88ee.tar.gz
cli: Add `tracker export --show-graphs` option
This option includes graphs in the exported output. In this mode the output is no longer Turtle format but [TriG](https://www.w3.org/TR/trig/) format. This means `tracker export --show-graphs | tracker import` won't work, so this mode is disabled by default.
Diffstat (limited to 'tests/functional-tests')
-rw-r--r--tests/functional-tests/cli.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/functional-tests/cli.py b/tests/functional-tests/cli.py
index 83c651b43..76ee55c16 100644
--- a/tests/functional-tests/cli.py
+++ b/tests/functional-tests/cli.py
@@ -65,6 +65,8 @@ class TestCli(fixtures.TrackerCommandLineTestCase):
'--ontology-path', ontology_path])
self.run_cli(
['tracker3', 'export', '--database', tmpdir]);
+ self.run_cli(
+ ['tracker3', 'export', '--database', tmpdir, '--show-graphs']);
def test_import(self):
"""Import a Turtle file into a Tracker database."""