mirror of
https://github.com/rizinorg/rz-pipe.git
synced 2026-11-08 17:47:48 -10:00
* Don't ignore errors * Use pytest 8.3.3 * Remove rz-agent use from open_base_test.py test
26 lines
625 B
Python
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")
|