Skip to content

Commit

Permalink
WhiteNoise: Ignore STATIC_ROOT warning during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-aguilar committed Apr 14, 2023
1 parent c1c7de2 commit 767f7f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion emr/locale/es/LC_MESSAGES/django.po
Expand Up @@ -93,7 +93,7 @@ msgstr "Paciente"
msgid "Patients"
msgstr "Pacientes"

#: models.py:73 tests.py:42
#: models.py:75 tests.py:44
msgid "Invalid date of birth."
msgstr "Fecha de nacimiento no válida."

Expand Down
2 changes: 2 additions & 0 deletions emr/tests.py
Expand Up @@ -4,6 +4,7 @@
from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
from django.test import TestCase
from django.test.utils import ignore_warnings
from django.urls import reverse
from django.utils.translation import gettext_lazy as _
from freezegun import freeze_time
Expand Down Expand Up @@ -49,6 +50,7 @@ class PatientListApiTestCase(TestCase):
patients = None

def setUp(self):
ignore_warnings(message='No directory at', module='whitenoise.base').enable()
self.user = User.objects.create_user(USERNAME, password=USER_PASSWORD)
self.client.login(username=USERNAME, password=USER_PASSWORD)

Expand Down

0 comments on commit 767f7f1

Please sign in to comment.