Skip to content

Commit

Permalink
new checks in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Aug 8, 2024
1 parent a420ab5 commit 26d596c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/units/tokens/test_timeout_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,15 +1166,12 @@ def test_bigger_temp_timeout_token_plus_less_temp_timeout_token_with_not_same_mo
def test_less_or_equal_temp_not_monotonic_timeout_token_plus_bigger_or_equal_temp_not_monotonic_timeout_token_with_same_monotonic_flag_with_temp_condition_token_at_right_and_counter_token_at_left(timeout_for_equal_or_bigger_token, addictional_kwargs):
token = TimeoutToken(1, CounterToken(5), **addictional_kwargs) + TimeoutToken(timeout_for_equal_or_bigger_token, ConditionToken(lambda: True), **addictional_kwargs)

print(repr(token))

assert isinstance(token, TimeoutToken)
assert token.timeout == 1
assert len(token.tokens) == 2
assert len(token.tokens[0].tokens) == 0
assert len(token.tokens[1].tokens) == 0
assert isinstance(token.tokens[0], CounterToken)
assert isinstance(token.tokens[1], ConditionToken)
assert {type(token.tokens[0]), type(token.tokens[1])} == {CounterToken, ConditionToken}


@pytest.mark.parametrize(
Expand Down

0 comments on commit 26d596c

Please sign in to comment.