Files
rz-pipe/python/tests/open_base_test.py
Khairul Azhar Kasmiran 3b2fb66b56 ci: Fix Python rz-pipe test step (#59)
* Don't ignore errors
* Use pytest 8.3.3
* Remove rz-agent use from open_base_test.py test
2024-11-11 21:45:37 +08:00

26 lines
625 B
Python

import sys
from shutil import which
import pytest
from rzpipe import open_base
def test_constructor_win():
if sys.platform.startswith("nt"):
pytest.skip("skipping windows-only tests")
# TODO: setup vagrant or similar to be able to add proper windows tests
def test_constructor_linux():
"""
Tests the OpenBase constructor, the context manager and using
OpenBase.cmd with the _cmd_native default.
:return:
"""
if sys.platform.startswith("win"):
pytest.skip("skipping linux-only tests")
with open_base.OpenBase(which('ls')) as base:
base.cmd("s entry0; pd 20")