clan-vm-manager: Fix regression part2

This commit is contained in:
Qubasa
2024-11-28 19:01:41 +01:00
parent 167f753bd3
commit cf2ddfc191
3 changed files with 24 additions and 10 deletions

View File

@@ -18,6 +18,13 @@ def test_get_url() -> None:
assert uri.get_url() == "/home/user/Downloads"
def test_firefox_strip_uri() -> None:
uri = ClanURI.from_str("clan://https//git.clan.lol/clan/democlan")
assert uri.get_url() == "https://git.clan.lol/clan/democlan"
uri = ClanURI.from_str("clan://git+https//git.clan.lol/clan/democlan.git")
assert uri.get_url() == "git+https://git.clan.lol/clan/democlan.git"
def test_local_uri() -> None:
# Create a ClanURI object from a local URI
uri = ClanURI.from_str("clan://file:///home/user/Downloads")