mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-17 11:57:38 +08:00
bugfix: strip environment value
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user