Skip to content

Commit

Permalink
Precommit using validate_arguments (kuznia-rdzeni/coreblocks#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
tilk authored Nov 11, 2024
1 parent d6e0aeb commit 9204195
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion transactron/testing/testbenchio.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def handle_validate_arguments():
ret_out = mock_def_helper(self, function, arg)
yield from self.method_return(ret_out or {})
yield Tick()
yield from self.set_enable(False)

def method_handle_loop(
self,
Expand All @@ -139,7 +140,10 @@ def method_handle_loop(
yield Passive()
while True:
yield from self.method_handle(
function, enable=enable, validate_arguments=validate_arguments, extra_settle_count=extra_settle_count
function,
enable=enable,
validate_arguments=validate_arguments,
extra_settle_count=extra_settle_count,
)

# Debug signals
Expand Down

0 comments on commit 9204195

Please sign in to comment.