fix: ensure_file_path_valid for folder path

This commit is contained in:
debugtalk
2020-06-06 22:25:50 +08:00
parent b400060aca
commit 504f07c8a3
2 changed files with 5 additions and 1 deletions

View File

@@ -126,3 +126,7 @@ class TestUtils(unittest.TestCase):
ensure_file_path_valid("1/2B/3.yml"),
os.path.join(os.getcwd(), "T1/T2B/T3.yml"),
)
self.assertEqual(
ensure_file_path_valid("examples/postman-echo/request.methods/"),
os.path.join(os.getcwd(), "examples/postman_echo/request_methods"),
)