Skip to content

Commit 201ae94

Browse files
committed
Add more tests on module utils.paths
1 parent d67a232 commit 201ae94

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_paths.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def test_no_fullname(self):
4444
dir_path, only_file_name = os.path.split(path)
4545
self.assertTrue(os.path.exists(dir_path))
4646
self.assertIsNotNone(only_file_name)
47+
self.assertEqual(only_file_name, file_name)
4748

4849
def test_no_path(self):
4950
"""
@@ -57,6 +58,7 @@ def test_no_path(self):
5758
dir_path, only_file_name = os.path.split(path)
5859
self.assertTrue(os.path.exists(dir_path))
5960
self.assertIsNotNone(only_file_name)
61+
self.assertEqual(only_file_name, file_name)
6062

6163
def test_current_path(self):
6264
"""
@@ -70,6 +72,7 @@ def test_current_path(self):
7072
dir_path, only_file_name = os.path.split(path)
7173
self.assertTrue(os.path.exists(dir_path))
7274
self.assertIsNotNone(only_file_name)
75+
self.assertEqual(only_file_name, file_name)
7376

7477
def test_path_with_file_name(self):
7578
"""
@@ -83,3 +86,4 @@ def test_path_with_file_name(self):
8386
dir_path, only_file_name = os.path.split(path)
8487
self.assertTrue(os.path.exists(dir_path))
8588
self.assertEqual(only_file_name, 'test_export.csv')
89+
self.assertEqual(only_file_name, file_name)

0 commit comments

Comments
 (0)