Skip to content

Commit 61b71b2

Browse files
authored
chore: Fix invalid unit test (#348)
With the latest release, pyRFC3339 allows a more flexible format. Prior versions required an explicit T separator before the time section even though the spec allows for a space. While we still support the older version of pyRFC3339, we only test against the latest version, and can safely update this invalid test. Both of these are considered valid formats: 1970-01-01T00:00:02.500Z 1970-01-01 00:00:02.500Z
1 parent c22ad26 commit 61b71b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ldclient/testing/impl/test_operators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
["before", "1970-01-01T00:00:00.500Z", 1000, True],
5858
["before", True, 1000, False], # wrong type
5959
["after", "1970-01-01T00:00:02.500Z", 1000, True],
60-
["after", "1970-01-01 00:00:02.500Z", 1000, False], # malformed timestamp
60+
["after", "1970-01-01 00:00:02.500Z", 1000, True],
6161
["after", "1970-01-01T00:00:02+01:00", None, False],
6262
["after", None, "1970-01-01T00:00:02+01:00", False],
6363
["before", "1970-01-01T00:00:02+01:00", 1000, True],

0 commit comments

Comments
 (0)