Skip to content

Commit 855c512

Browse files
committed
Refactor tests
1 parent 0772323 commit 855c512

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ def setUpClass(cls):
2626
def tearDownClass(cls):
2727
os.remove(cls.db_path)
2828

29-
def test_example(self):
29+
def test_db_exist(self):
3030
self.assertTrue(self.db is not None)
3131

32+
def test_de(self):
3233
source = pathtraits.access.get_dict(self.db, "test/example/EU/de.txt")
3334
target = {
3435
"description": "Germany data",
@@ -39,6 +40,7 @@ def test_example(self):
3940
for k, v in target.items():
4041
self.assertEqual(source[k], v)
4142

43+
def test_eu(self):
4244
source = pathtraits.access.get_dict(self.db, "test/example/EU")
4345
target = {
4446
"description": "EU data",
@@ -49,6 +51,7 @@ def test_example(self):
4951
for k, v in target.items():
5052
self.assertEqual(source[k], v)
5153

54+
def test_example(self):
5255
source = pathtraits.access.get_dict(self.db, "test/example")
5356
target = {
5457
"description": "all data",
@@ -58,6 +61,7 @@ def test_example(self):
5861
for k, v in target.items():
5962
self.assertEqual(source[k], v)
6063

64+
def test_data_view(self):
6165
source = len(self.db.execute("SELECT * FROM data;").fetchall())
6266
target = 6
6367
self.assertEqual(source, target)

0 commit comments

Comments
 (0)