Commit 1163c44d authored by Denis Laxalde's avatar Denis Laxalde
Browse files

Explicitly pass "fpath" to run_import_skos in ccplugin tests

We'll need to use another file in the next changeset.
parent 5eda4ae7deb7
......@@ -50,8 +50,8 @@ class ImportSkosDataCommandTC(testlib.CubicWebTC):
CubicWebConfiguration.config_for = self.orig_config_for
super(ImportSkosDataCommandTC, self).tearDown()
def run_import_skos(self, *args):
cmd = [self.appid, self.datapath('skos.rdf')] + list(args)
def run_import_skos(self, fpath, *args):
cmd = [self.appid, fpath] + list(args)
sys.stdout = StringIO()
try:
ccplugin.ImportSkosData(None).main_run(cmd)
......@@ -70,15 +70,17 @@ class ImportSkosDataCommandTC(testlib.CubicWebTC):
self.assertEqual(concept.labels, expected)
def test_nooption(self):
self.run_import_skos()
self.run_import_skos(self.datapath('skos.rdf'))
self._test_base()
def test_nohook(self):
self.run_import_skos('--cw-store', 'nohook')
self.run_import_skos(self.datapath('skos.rdf'),
'--cw-store', 'nohook')
self._test_base()
def test_massive(self):
self.run_import_skos('-s', 'massive')
self.run_import_skos(self.datapath('skos.rdf'),
'-s', 'massive')
self._test_base()
......
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