Skip to content

Commit

Permalink
fix negative test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Sup2point0 authored Mar 31, 2024
1 parent e7df9ac commit 103d877
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tests/quarkify.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ def test_positive():


def test_negative():
result = quarkify.extract_quarks('''
testing
<!-- #QUARK -->
''')
skips = False

try:
quarkify.extract_quarks('''
testing
<!-- #QUARK -->
''')
except quarkify.Quarkless:
skips = True

assert result.get("live", False) is False
assert skips

0 comments on commit 103d877

Please sign in to comment.