Skip to content

Commit

Permalink
Test methods returning Value instances
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Nov 18, 2024
1 parent 8ab099b commit 2b5bbf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/settings/dot_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
1 change: 1 addition & 0 deletions tests/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2b5bbf6

Please sign in to comment.