Skip to content

Commit

Permalink
Clean up duplicate datetime conversion tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rl committed Feb 10, 2024
1 parent 0820ab5 commit 445a15a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/test_additional.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
import copy
from datetime import UTC, datetime
from unittest import mock

import pytest
from fhirpathpy import evaluate


@mock.patch("fhirpathpy.engine.invocations.datetime.datetime")
def datetime_tostring_tzinfo_test(datetime_mock):
datetime_mock.now.return_value = datetime(
2020, 8, 20, 17, 52, 15, 123000, tzinfo=UTC
)
assert evaluate({}, "now() + 1 month")[0] == "2020-09-20T17:52:15.123+00:00"


@pytest.mark.parametrize(
("resource", "path"),
[
Expand Down

0 comments on commit 445a15a

Please sign in to comment.