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

feat(groups): add a list_ldap_group_links to go along with the pre ex…#2371

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

Conversation

rayisbadat
Copy link
Contributor

feat(groups): add a list_ldap_group_links to go along with the pre existing add_ldap_group_link and delete_ldap_group_link

@codecov-commenter
Copy link

codecov-commenter commentedNov 9, 2022
edited
Loading

Codecov Report

Merging#2371 (a4456be) intomain (034cde3) willdecrease coverage by0.03%.
The diff coverage is60.00%.

@@            Coverage Diff             @@##             main    #2371      +/-   ##==========================================- Coverage   95.95%   95.91%   -0.04%==========================================  Files          79       79                Lines        5286     5291       +5     ==========================================+ Hits         5072     5075       +3- Misses        214      216       +2
FlagCoverage Δ
api_func_v483.57% <60.00%> (-0.03%)⬇️
cli_func_v482.42% <60.00%> (-0.03%)⬇️
unit87.75% <60.00%> (-0.03%)⬇️

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
gitlab/v4/objects/groups.py88.46% <60.00%> (-0.95%)⬇️

Copy link

@lmilbaumlmilbaum left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@lmilbaumlmilbaum left a comment

Choose a reason for hiding this comment

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

Could you please add a unit test?

@rayisbadat
Copy link
ContributorAuthor

@lmilbaum Could you please add a unit test?

I added a unit test and tox passed. But this my first time doing such a thing. So if its not right , I might need a little help on whats needed.

Copy link
Member

@nejchnejch left a comment

Choose a reason for hiding this comment

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

@lmilbaum Could you please add a unit test?

I added a unit test and tox passed. But this my first time doing such a thing. So if its not right , I might need a little help on whats needed.

@rayisbadat it's a great start! You've added a test fixture, which you can now use to also create a test case, for exampledef test_list_ldap_group_links(group, resp_list_ldap_group_links):.

It will look a bit like this existing test, but without theisinstance assert probably:

deftest_list_group_projects(group,resp_list_group_projects):
projects=group.projects.list()
assertisinstance(projects[0],GroupProject)
assertprojects[0].path==projects_content[0]["path"]

Just a small tip, we usually put all the fixtures (things decorated with@pytest.fixture) at the top of the module, and test cases (def test_*) after them.

@rayisbadatrayisbadatforce-pushed thefeat/list_ldap_group_sync branch from7a81117 to6194085CompareNovember 16, 2022 16:31
@nejch
Copy link
Member

@JohnVillalovos I think you wanted to have another look at this?

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 Looks good to me, though would like it to be squashed when it is merged in.

@nejchnejch merged commitad7c8fa intopython-gitlab:mainNov 16, 2022
@nejch
Copy link
Member

Thanks everyone. I did a squash and merge@JohnVillalovos

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@lmilbaumlmilbaumlmilbaum requested changes

@JohnVillalovosJohnVillalovosJohnVillalovos approved these changes

@nejchnejchnejch approved these changes

Assignees

@JohnVillalovosJohnVillalovos

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@rayisbadat@codecov-commenter@nejch@JohnVillalovos@lmilbaum@rpowellatanl

[8]ページ先頭

©2009-2025 Movatter.jp