Test that the environment variable was set.
parent
9711c1b202
commit
c735ff7a85
|
@ -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()
|
Loading…
Reference in New Issue