Fix test - remove not applicable case for Python API.

pull/3334/head
derekpierre 2023-11-07 16:19:47 -05:00 committed by KPrasch
parent 510fc20592
commit 95bca154fc
1 changed files with 1 additions and 9 deletions

View File

@ -24,20 +24,12 @@ def test_invalid_time_condition():
method="time_after_time",
)
# invalid chain id
with pytest.raises(InvalidCondition):
_ = TimeCondition(
return_value_test=ReturnValueTest(">", 0),
chain="mychain",
method="time_after_time",
)
# chain id not permitted
with pytest.raises(InvalidCondition):
_ = TimeCondition(
return_value_test=ReturnValueTest(">", 0),
chain=90210, # Beverly Hills Chain :)
method="time_after_time",
method=TimeCondition.METHOD,
)