Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Sep 20, 2023
1 parent 47a99a9 commit b6962f1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/tokens/test_abstract_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,19 @@ def test_repr(token_fabric):
assert repr(token) == type(token).__name__ + '(' + ('' if not superpower_text else f'{superpower_text}, ') + 'cancelled=False' + ')'


@pytest.mark.parametrize(
'token_fabric',
ALL_TOKENS_FABRICS,
)
def test_repr_with_another_token(token_fabric):
another_token = token_fabric()
token = token_fabric(another_token)

superpower_text = token.text_representation_of_superpower()

assert repr(token) == type(token).__name__ + '(' + ('' if not superpower_text else f'{superpower_text}, ') + repr(another_token) + ', ' + 'cancelled=False' + ')'


@pytest.mark.parametrize(
'token_fabric',
ALL_TOKENS_FABRICS,
Expand Down

0 comments on commit b6962f1

Please sign in to comment.