Skip to content

Commit

Permalink
test(misc): Add test for violating timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
chgad committed Jul 13, 2024
1 parent e6585c6 commit c4fdd45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ def test_http_date_to_dt(self):
'Sunday, 06-Nov-94 08:49:37 GMT', obs_date=True
) == datetime(1994, 11, 6, 8, 49, 37, tzinfo=timezone.utc)

with pytest.raises(ValueError):
falcon.http_date_to_dt('Thu, 04 Apr 2013 10:28:54 EST')

def test_pack_query_params_none(self):
assert falcon.to_query_str({}) == ''

Expand Down

0 comments on commit c4fdd45

Please sign in to comment.