From c07978fa7979bfcb9912e0d22a9505a5966eae3e Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 15 Jun 2020 22:05:28 +0200 Subject: [PATCH] add test for verbose name filter --- core/tests/test_templatetags.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 core/tests/test_templatetags.py diff --git a/core/tests/test_templatetags.py b/core/tests/test_templatetags.py new file mode 100644 index 0000000..a6f6f4a --- /dev/null +++ b/core/tests/test_templatetags.py @@ -0,0 +1,9 @@ +import pytest + +from core.models import DayOfMonth +from core.templatetags import core_extras + + +def test_verbose_name(): + instance = DayOfMonth() + assert "day of month" == core_extras.verbose_name(instance)