fix(FastAPI): Fix aurweb.template warnings

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-09-16 20:47:12 -07:00
parent 3ea515d705
commit 6afcaf665e
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -4,7 +4,8 @@ from aurweb.templates import register_filter
@register_filter("func")
def func(): pass
def func():
pass
def test_register_filter_exists_key_error():
@ -12,4 +13,5 @@ def test_register_filter_exists_key_error():
imports or template renders, so we only test failures here. """
with pytest.raises(KeyError):
@register_filter("func")
def some_func(): pass
def some_func():
pass