mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(FastAPI): Fix aurweb.template warnings
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
3ea515d705
commit
6afcaf665e
1 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,8 @@ from aurweb.templates import register_filter
|
||||||
|
|
||||||
|
|
||||||
@register_filter("func")
|
@register_filter("func")
|
||||||
def func(): pass
|
def func():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def test_register_filter_exists_key_error():
|
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. """
|
imports or template renders, so we only test failures here. """
|
||||||
with pytest.raises(KeyError):
|
with pytest.raises(KeyError):
|
||||||
@register_filter("func")
|
@register_filter("func")
|
||||||
def some_func(): pass
|
def some_func():
|
||||||
|
pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue