Skip to content

Commit

Permalink
expect AssertionError for failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bbyalcinkaya committed Sep 5, 2024
1 parent 476e0ef commit acfd80e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/komet/kasmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ def call_init() -> tuple[KInner, ...]:

# Run the steps and grab the resulting config as a starting place to call transactions
proc_res = concrete_definition.krun_with_kast(steps, sort=KSort('Steps'), output=KRunOutput.KORE)
assert proc_res.returncode == 0

kore_result = KoreParser(proc_res.stdout).pattern()
kast_result = kore_to_kast(concrete_definition.kdefinition, kore_result)

Expand Down
3 changes: 1 addition & 2 deletions src/tests/integration/test_integration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from pathlib import Path
from subprocess import CalledProcessError

import pytest
from pyk.kdist import kdist
Expand Down Expand Up @@ -41,7 +40,7 @@ def test_komet(contract_path: Path, tmp_path: Path, concrete_kasmer: Kasmer) ->

# Then
if contract_path.stem.endswith('_fail'):
with pytest.raises(CalledProcessError):
with pytest.raises(AssertionError):
concrete_kasmer.deploy_and_run(contract_wasm, child_wasms)
else:
concrete_kasmer.deploy_and_run(contract_wasm, child_wasms)
Expand Down

0 comments on commit acfd80e

Please sign in to comment.