Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADCM-6076 Add unit tests #7

Merged
merged 8 commits into from
Nov 18, 2024
Merged

ADCM-6076 Add unit tests #7

merged 8 commits into from
Nov 18, 2024

Conversation

Sealwing
Copy link
Collaborator

No description provided.

@Sealwing Sealwing marked this pull request as ready for review November 15, 2024 13:25
@Sealwing Sealwing enabled auto-merge (squash) November 15, 2024 13:28
assert all(map(check_entry, result))
assert len(requester.queue) == len(response_sequence) - 1

# all
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe to split it by pytest parametrization into subtests?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

subtests (as in unittest) isn't naturally supported in pytest

but if you mean splitting by method -- checks aren't the same for all of them (some require extra checks)

if you mean making parametrized test instead of _test* -- it's a good idea, but in this particular case I see only "magical" implementation of it (since it's convenient to bond some values before the _test* call)

@Sealwing Sealwing requested a review from Starovoitov November 18, 2024 07:04
@Sealwing Sealwing merged commit 5599ad5 into feature/ADCM-6064 Nov 18, 2024
3 checks passed
@Sealwing Sealwing deleted the ADCM-6076 branch November 18, 2024 09:06
a-alferov pushed a commit that referenced this pull request Dec 9, 2024
Starovoitov pushed a commit that referenced this pull request Dec 13, 2024
Starovoitov pushed a commit that referenced this pull request Dec 16, 2024
Starovoitov pushed a commit that referenced this pull request Dec 16, 2024
a-alferov pushed a commit that referenced this pull request Jan 24, 2025
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.

4 participants