From c735ff7a857c264075292a4b4323b5b85ccec26a Mon Sep 17 00:00:00 2001 From: junos Date: Thu, 24 Dec 2020 14:04:02 +0100 Subject: [PATCH] Test that the environment variable was set. --- test/config.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/config.py diff --git a/test/config.py b/test/config.py new file mode 100644 index 0000000..6147aa4 --- /dev/null +++ b/test/config.py @@ -0,0 +1,13 @@ +import unittest +import os +from dotenv import load_dotenv + +load_dotenv() + +class ConfigProject(unittest.TestCase): + def test_env_variables(self): + self.assertIsNotNone(os.getenv("DB_PASSWORD")) + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file