Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cahytinne committed Jul 30, 2015
1 parent fbfb5ef commit 9b8505a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_import_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

here = os.path.dirname(__file__)
settings = get_appsettings(os.path.join(here, '../', 'tests/conf_test.ini'))
test_data = os.path.join(here, '../', 'tests/data/trees.xml')


class ImportTests(unittest.TestCase):
Expand All @@ -39,7 +40,7 @@ def tearDown(self):
Base.metadata.drop_all(self.engine)

def test_import_rdf(self):
sys.argv = ['import_rdf', '--from', 'data/trees.xml', '--to', 'sqlite:///dbtest.sqlite']
sys.argv = ['import_rdf', '--from', test_data, '--to', settings['sqlalchemy.url']]
import_rdf.main(sys.argv)

sql_prov = SQLAlchemyProvider({'id': 'TREES', 'conceptscheme_id': 1}, self.session_maker)
Expand Down

0 comments on commit 9b8505a

Please sign in to comment.