fix #392: multiple '=' in .env file

This commit is contained in:
httprunner
2018-09-17 15:16:35 +08:00
parent f65b7aac52
commit 8e89246cbe
3 changed files with 5 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
UserName=test
Password=654321
PROJECT_KEY=AAABBBCCC
PROJECT_KEY=AAABBBCCC
content_type=application/json; charset=UTF-8

View File

@@ -148,6 +148,7 @@ class TestFileLoader(unittest.TestCase):
env_variables_mapping = loader.load_dot_env_file()
self.assertIn("PROJECT_KEY", env_variables_mapping)
self.assertEqual(env_variables_mapping["UserName"], "test")
self.assertEqual(env_variables_mapping["content_type"], "application/json; charset=UTF-8")
loader.dot_env_path = None
def test_load_env_path_not_exist(self):