From 34e0f3fd61a011c7fcd8d7a20d1950ff8e3d4bb7 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Tue, 3 Oct 2023 08:36:29 +0200 Subject: [PATCH] chore: fix get repos test for running on forks --- tests/test_gitinfo.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_gitinfo.py b/tests/test_gitinfo.py index 03e4812..621ced8 100644 --- a/tests/test_gitinfo.py +++ b/tests/test_gitinfo.py @@ -75,7 +75,6 @@ def test_real_get_github_repos(): # with .git repos = get_github_repos() assert len(repos) >= 1 - for repo in repos: - - assert re.fullmatch(r"\w+/\w+", repo) - assert not repo.endswith(".git") + repo = repos.pop() + assert re.fullmatch(r"\w+/\w+", repo) + assert not repo.endswith(".git")