mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
16 lines
263 B
Python
16 lines
263 B
Python
![]() |
import platform
|
||
|
|
||
|
import pytest
|
||
|
|
||
|
|
||
|
@pytest.fixture
|
||
|
def uname(xession, load_xontrib):
|
||
|
load_xontrib("coreutils")
|
||
|
return xession.aliases["uname"]
|
||
|
|
||
|
|
||
|
def test_uname_without_args(uname):
|
||
|
out = uname(["-a"])
|
||
|
|
||
|
assert out.startswith(platform.uname().system)
|