Skip to content

Commit

Permalink
Add test for utcnow_func
Browse files Browse the repository at this point in the history
  • Loading branch information
subhashb committed Nov 22, 2023
1 parent 0043dff commit c9f7d56
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/utils/test_util.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import datetime

from protean.utils import utcnow_func


def test_utcnow_func():
func = utcnow_func
assert func is not None
assert callable(func) is True

result = func()
assert result is not None
assert type(result) == datetime.datetime

0 comments on commit c9f7d56

Please sign in to comment.