Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test(functional): replace len() calls with list membership checks#2118

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JohnVillalovos merged 1 commit intomainfromtest/no-len-asserts
Jul 4, 2022

Conversation

@nejch
Copy link
Member

@nejchnejch commentedJul 3, 2022
edited
Loading

See#1784 (comment).

I've felt a bit weird for a while about having these magic numbers in tests, and they don't really test whether the actual resource created is or isn't in the list. This should hopefully also help with some of the race conditions potentially introduced with async gitlab operations.

I've left a few where it would need some further refactoring (e.g. fixture factories for group/member creation) or where I thoughtlen() was still useful. It was already quite tedious so it might be tedious to review, I can split it into multiple commits if needed :)

@nejchnejch marked this pull request as ready for reviewJuly 3, 2022 22:17
Copy link
Member

@JohnVillalovosJohnVillalovos left a comment

Choose a reason for hiding this comment

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

@nejch Wow! A lot of work there. Thanks!

Great idea.

@JohnVillalovosJohnVillalovos merged commit97e0eb9 intomainJul 4, 2022
@JohnVillalovosJohnVillalovos deleted the test/no-len-asserts branchJuly 4, 2022 01:33
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@JohnVillalovosJohnVillalovosJohnVillalovos approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@nejch@JohnVillalovos

[8]ページ先頭

©2009-2025 Movatter.jp