Merge pull request 'clan-vm-manager: don't mark test_is_local as impure' (#4755) from no-impure into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4755
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import pytest
|
|
||||||
from clan_cli.tests.fixtures_flakes import ClanFlake
|
from clan_cli.tests.fixtures_flakes import ClanFlake
|
||||||
from clan_lib.flake import Flake
|
from clan_lib.flake import Flake
|
||||||
from clan_vm_manager.clan_uri import ClanURI
|
from clan_vm_manager.clan_uri import ClanURI
|
||||||
@@ -21,7 +20,6 @@ def test_get_url() -> None:
|
|||||||
assert uri.get_url() == "file:///home/user/Downloads"
|
assert uri.get_url() == "file:///home/user/Downloads"
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.impure
|
|
||||||
def test_is_local(flake: ClanFlake) -> None:
|
def test_is_local(flake: ClanFlake) -> None:
|
||||||
uri = ClanURI.from_str(f"clan://git+file://{flake.path}")
|
uri = ClanURI.from_str(f"clan://git+file://{flake.path}")
|
||||||
assert uri.get_url() == str(flake.path)
|
assert uri.get_url() == str(flake.path)
|
||||||
|
|||||||
Reference in New Issue
Block a user