fix: avoid '.csv' been converted to '_csv'

This commit is contained in:
debugtalk
2020-06-15 15:06:33 +08:00
parent 0580e3fc00
commit 38364e8960
3 changed files with 14 additions and 3 deletions

View File

@@ -130,7 +130,8 @@ class TestUtils(unittest.TestCase):
ensure_file_path_valid(os.getcwd()), os.getcwd(),
)
self.assertEqual(
ensure_file_path_valid(os.getcwd() + ".csv"), os.getcwd() + ".csv",
ensure_file_path_valid(os.path.join(os.getcwd(), "demo", ".csv")),
os.path.join(os.getcwd(), "demo", ".csv"),
)
def test_safe_dump_json(self):