Skip to content

Commit

Permalink
add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnchin committed Nov 22, 2023
1 parent 4228993 commit 019e913
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/unit/seed/get_datasets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ def test_get_custom_queries_from_file_sparql(self):
self.assertEqual(1, len(queries))
self.assertEqual('0_test_data.txt', queries[0]['name'])

def test_get_data_sets_cypher(self):
data_sets = get_data_sets('opencypher')
self.assertTrue('airports' in data_sets)

def test_get_sample_queries_cypher(self):
language = 'opencypher'
name = 'airports'
location = 'samples'
queries = get_queries(language, name, location)
self.assertEqual(1, len(queries))
self.assertEqual('airports_full.txt', queries[0]['name'])

def test_get_custom_queries_from_directory_cypher(self):
language = ''
name = 'local_seed_test_cypher'
Expand Down

0 comments on commit 019e913

Please sign in to comment.