mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
13 lines
No EOL
383 B
Python
13 lines
No EOL
383 B
Python
import os
|
|
from django.test import TestCase
|
|
from mock import patch
|
|
|
|
|
|
class DotEnvLoadingTests(TestCase):
|
|
|
|
@patch.dict(os.environ, clear=True,
|
|
DJANGO_CONFIGURATION='DotEnvConfiguration',
|
|
DJANGO_SETTINGS_MODULE='tests.settings.dot_env')
|
|
def test_env_loaded(self):
|
|
from tests.settings import dot_env
|
|
self.assertTrue(dot_env.DOT_ENV_LOADED) |