Test that the environment variable was set.

communication
junos 2020-12-24 14:04:02 +01:00
parent 9711c1b202
commit c735ff7a85
1 changed files with 13 additions and 0 deletions

13
test/config.py 100644
View File

@ -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()