bugfix: strip environment value

This commit is contained in:
httprunner
2018-06-11 20:00:37 +08:00
parent 2b40399d05
commit a202fc0866
3 changed files with 4 additions and 2 deletions

View File

@@ -158,6 +158,7 @@ class TestHttpRunner(ApiServerUnittest):
self.assertNotIn("PROJECT_KEY", os.environ)
HttpRunner(dot_env_path="tests/data/test.env").run(self.testset_path)
self.assertIn("PROJECT_KEY", os.environ)
self.assertEqual(os.environ["UserName"], "debugtalk")
def test_load_env_path_not_exist(self):
with self.assertRaises(FileNotFoundError):