diff --git a/tests/settings/dot_env.py b/tests/settings/dot_env.py index eab4237..7c9d3e6 100644 --- a/tests/settings/dot_env.py +++ b/tests/settings/dot_env.py @@ -6,3 +6,6 @@ class DotEnvConfiguration(Configuration): DOTENV = 'test_project/.env' DOTENV_VALUE = values.Value() + + def DOTENV_VALUE_METHOD(self): + return values.Value(environ_name="DOTENV_VALUE") diff --git a/tests/test_env.py b/tests/test_env.py index 8066eea..50b7f66 100644 --- a/tests/test_env.py +++ b/tests/test_env.py @@ -11,4 +11,5 @@ class DotEnvLoadingTests(TestCase): def test_env_loaded(self): from tests.settings import dot_env self.assertEqual(dot_env.DOTENV_VALUE, 'is set') + self.assertEqual(dot_env.DOTENV_VALUE_METHOD, 'is set') self.assertEqual(dot_env.DOTENV_LOADED, dot_env.DOTENV)