mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-23 20:29:06 -05:00
feat: read the voidpoint.io gitlab
eduke32 and fury declare https://voidpoint.io/terminx/eduke32 and were skipped as an unsupported host. The instance serves the GitLab v4 API (/api/v4/projects/terminx%2Feduke32 answers 200) and /-/raw/ paths.
This commit is contained in:
1 parent
b784a73d5c
commit
1b3763e58f
2 files changed
+16
No files matched your search
@@ -46,6 +46,12 @@ _HOSTS: dict[str, tuple[str, str, str]] = {
|
||||
"https://git.libretro.com/api/v4",
|
||||
"https://git.libretro.com",
|
||||
),
|
||||
# EDuke32 and its forks (eduke32, fury) are developed on this GitLab.
|
||||
"voidpoint.io": (
|
||||
"gitlab",
|
||||
"https://voidpoint.io/api/v4",
|
||||
"https://voidpoint.io",
|
||||
),
|
||||
"codeberg.org": (
|
||||
"forgejo",
|
||||
"https://codeberg.org/api/v1",
|
||||
|
||||
@@ -66,6 +66,16 @@ class TestParseRepo(unittest.TestCase):
|
||||
"/-/raw/abc123/source/Engine.cpp",
|
||||
)
|
||||
|
||||
def test_voidpoint_is_a_gitlab(self):
|
||||
"""eduke32 and fury were skipped as an unsupported host."""
|
||||
repo = parse_repo("https://voidpoint.io/terminx/eduke32")
|
||||
self.assertEqual(repo.family, "gitlab")
|
||||
self.assertEqual(repo.api_base, "https://voidpoint.io/api/v4")
|
||||
self.assertEqual(
|
||||
raw_url(repo, "abc123", "source/build/src/build.cpp"),
|
||||
"https://voidpoint.io/terminx/eduke32/-/raw/abc123/source/build/src/build.cpp",
|
||||
)
|
||||
|
||||
def test_libretro_gitlab_is_a_gitlab(self):
|
||||
repo = parse_repo("https://git.libretro.com/libretro/wqxemu.git")
|
||||
self.assertEqual(repo.family, "gitlab")
|
||||
|
||||
Reference in new issue
Block a user