Skip to content

Commit 06155f4

Browse files
committed
Remove "adding collaborators" features from e2e tests
1 parent 4bd8d5e commit 06155f4

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

tests/end_to_end/conftest.py

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -257,18 +257,7 @@ def f(gh):
257257

258258

259259
@pytest.fixture
260-
def team_users_permissions():
261-
team = {"ewjoachim": "admin", "kieferro": "admin"}
262-
if pr_author := os.environ.get("COVERAGE_COMMENT_E2E_PR_AUTHOR"):
263-
if "[bot]" not in pr_author and pr_author not in team:
264-
team[pr_author] = "push"
265-
return team
266-
267-
268-
@pytest.fixture
269-
def gh_create_repo(
270-
is_failed, gh_delete_repo, gh_me, git_repo, repo_name, team_users_permissions
271-
):
260+
def gh_create_repo(is_failed, gh_delete_repo, gh_me, git_repo, repo_name):
272261
gh_delete_repo(gh_me)
273262

274263
def f(*args):
@@ -292,17 +281,7 @@ def f(*args):
292281
)
293282
return git_repo
294283

295-
yield f
296-
297-
for username, permission in team_users_permissions.items():
298-
gh_me(
299-
"api",
300-
"--method",
301-
"PUT",
302-
f"/repos/{{owner}}/{{repo}}/collaborators/{username}",
303-
"-f",
304-
f"permission={permission}",
305-
)
284+
return f
306285

307286

308287
@pytest.fixture

0 commit comments

Comments
 (0)