15 lines
516 B
Python
15 lines
516 B
Python
from pyxray.libs.sysinfo import ArchType, OSType, executable_name, xray_artifact_platform
|
|
|
|
|
|
def test_xray_artifact_platform_windows_amd64() -> None:
|
|
assert xray_artifact_platform(OSType.WINDOWS, ArchType.AMD64) == "Xray-windows-64"
|
|
|
|
|
|
def test_xray_artifact_platform_linux_arm64() -> None:
|
|
assert xray_artifact_platform(OSType.LINUX, ArchType.ARM64) == "Xray-linux-arm64-v8a"
|
|
|
|
|
|
def test_executable_name_has_platform_suffix() -> None:
|
|
name = executable_name("xray")
|
|
assert name in {"xray", "xray.exe"}
|