Skip to content

Commit

Permalink
Testfix: Make tb tests timezone aware
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmiller authored and fredkingham committed Apr 8, 2020
1 parent b0fa27b commit 3b4705e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions apps/tb/tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import datetime
from plugins.labtests import models

from django.utils import timezone
from rest_framework.reverse import reverse
from opal.core.test import OpalTestCase

from plugins.labtests import models

from apps.tb import utils


class TestMultipleResults(OpalTestCase):
LAB_TEST_DT = datetime.datetime(2019, 1, 4)
OBS_DATE_TIME = datetime.datetime(2019, 1, 5)
LAB_TEST_DT = timezone.make_aware(datetime.datetime(2019, 1, 4))
OBS_DATE_TIME = timezone.make_aware(datetime.datetime(2019, 1, 5))

TESTS_TO_OBS_TO_VALUES = {
"C REACTIVE PROTEIN": [
Expand Down Expand Up @@ -103,4 +107,3 @@ def test_get_lab_tests(self):
]
}
self.assertEqual(result.json(), expected)

0 comments on commit 3b4705e

Please sign in to comment.