Skip to content

Commit

Permalink
tests: Check assertions are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
spbnick committed Dec 11, 2023
1 parent eeb3712 commit 15af3fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test_kcidb.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ def test_light_asserts_are_disabled():
"environment variable set to a non-empty string"


def test_assertions_enabled():
"""Check python assertions are enabled"""
assert __debug__, "Tests must run with assertions enabled"


def test_json_output_options():
"""Check JSON output options work"""
assert_executes("", "kcidb.schema_main",
Expand Down

0 comments on commit 15af3fc

Please sign in to comment.