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 d105585 commit 41b1a0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emr/tests.py
Original file line number Diff line number Diff line change
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 41b1a0b

Please sign in to comment.