relocate functions related to .env

This commit is contained in:
httprunner
2018-11-15 19:37:50 +08:00
parent 0d057785bc
commit a6df9bc36c
2 changed files with 6 additions and 7 deletions

View File

@@ -153,8 +153,8 @@ class TestFileLoader(unittest.TestCase):
dot_env_path = os.path.join(
os.getcwd(), "tests", "data",
)
with self.assertRaises(exceptions.FileNotFound):
loader.load_dot_env_file(dot_env_path)
env_variables_mapping = loader.load_dot_env_file(dot_env_path)
self.assertEqual(env_variables_mapping, {})
def test_locate_file(self):
with self.assertRaises(exceptions.FileNotFound):