Skip to content

Commit

Permalink
added test for timestamp filter
Browse files Browse the repository at this point in the history
  • Loading branch information
iambibhas committed Jun 12, 2020
1 parent f43fc92 commit f800a1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_filters.py
Expand Up @@ -186,6 +186,10 @@ def test_date_mdy(self):
== '1/31/20'
)

def test_timestamp(self):
with self.app.test_request_context('/'):
assert filters.timestamp_filter(self.datetime) == 1580428800.0


class TestNaiveDatetimeFilters(TestDatetimeFilters):
def setUp(self):
Expand Down

0 comments on commit f800a1b

Please sign in to comment.