Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Feb 28, 2024
1 parent 7b15234 commit a4700b8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions render_static/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,9 @@ def test_batch_loader_mixin_not_impl():

try:
BatchLoaderMixin().get_dirs()
assert False, 'BatchLoaderMixin.get_dirs() should raise "NotImplementedError"'
assert ( # pragma: no cover
False
), 'BatchLoaderMixin.get_dirs() should raise "NotImplementedError"'
except NotImplementedError:
pass

Expand All @@ -1796,12 +1798,12 @@ def test_resources_38():

try:
files("dummy")
assert False, "file() should raise ImportError"
assert False, "file() should raise ImportError" # pragma: no cover
except ImportError:
pass

try:
as_file("dummy")
assert False, "file() should raise ImportError"
assert False, "file() should raise ImportError" # pragma: no cover
except ImportError:
pass

0 comments on commit a4700b8

Please sign in to comment.