From c9f7d5676c6d8243d67a5338528ff0a54827edb9 Mon Sep 17 00:00:00 2001 From: Subhash Bhushan Date: Tue, 21 Nov 2023 23:28:35 -0800 Subject: [PATCH] Add test for utcnow_func --- tests/utils/test_util.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/utils/test_util.py diff --git a/tests/utils/test_util.py b/tests/utils/test_util.py new file mode 100644 index 00000000..7b29c8d6 --- /dev/null +++ b/tests/utils/test_util.py @@ -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