File size: 321 Bytes
1e495f3 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import platform
from pytest import fixture
@fixture(scope="session")
def get_platform():
processor = platform.processor()
if processor.startswith("Intel"):
return "intel"
elif processor.startswith("arm"):
return "apple"
else:
raise ValueError(f"Unsupported platform: {processor}") |