Use pytest fixtures to parametrize existing tests. It allows to remove duplicated code (mainly, dataset generations), speed up tests, increase code readability. Also it improves test logs readability (see screenshot below), note additional square brackets in a test title.
Sorry, this PR looks quite huge for review, but you can hide whitespace changes and leave only meaningful ones (they are all similar across files).
Use pytest fixtures to parametrize existing tests. It allows to remove duplicated code (mainly, dataset generations), speed up tests, increase code readability. Also it improves test logs readability (see screenshot below), note additional square brackets in a test title.
Sorry, this PR looks quite huge for review, but you can hide whitespace changes and leave only meaningful ones (they are all similar across files).