Skip to content

test: add parametrize for some pytest tests#193

Merged
Apricot-S merged 2 commits intomasterfrom
refactor-tests
Feb 7, 2026
Merged

test: add parametrize for some pytest tests#193
Apricot-S merged 2 commits intomasterfrom
refactor-tests

Conversation

@Nihisil
Copy link
Contributor

@Nihisil Nihisil commented Feb 7, 2026

Closes #114

Added pytest parametrize where it suited, and changed some other tests to separate tests cases (they didn't really fit to the parametrize because takes a lot of input attrs and it looks harder to read).

@Nihisil Nihisil added this to the v2.0.0 milestone Feb 7, 2026
@Nihisil Nihisil requested a review from Apricot-S February 7, 2026 07:21
Comment on lines 157 to 163
("tiles_kwargs", "win_tile_kwargs"),
[
pytest.param({"sou": "12456", "man": "123456", "pin": "55"}, {"sou": "3"}, id="12_wait"),
pytest.param({"sou": "34589", "man": "123456", "pin": "55"}, {"sou": "7"}, id="89_wait"),
],
)
def test_penchan_fu(tiles_kwargs: dict, win_tile_kwargs: dict) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like it would be simpler to use one_line_string_to_136_array().

@Apricot-S Apricot-S changed the title chore: add parametrize for some pytest tests test: add parametrize for some pytest tests Feb 7, 2026
@Nihisil Nihisil requested a review from Apricot-S February 7, 2026 13:18
Copy link
Collaborator

@Apricot-S Apricot-S left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Apricot-S Apricot-S merged commit 47bee2b into master Feb 7, 2026
8 checks passed
@Apricot-S Apricot-S deleted the refactor-tests branch February 7, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task] Split multi‑assert tests into parameterized tests

2 participants