aurweb/test/test_templates.py
Kevin Morris 6afcaf665e
fix(FastAPI): Fix aurweb.template warnings
Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-09-16 20:49:06 -07:00

17 lines
400 B
Python

import pytest
from aurweb.templates import register_filter
@register_filter("func")
def func():
pass
def test_register_filter_exists_key_error():
""" Most instances of register_filter are tested through module
imports or template renders, so we only test failures here. """
with pytest.raises(KeyError):
@register_filter("func")
def some_func():
pass