tests: migrate misc.sh
note: only two of the tests actually needed migrating, as the others were already covered (e.g. by lang) Change-Id: I30abb2bd728ae2b144ad76566096a216aed3b8f8
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
from testlib.fixtures.nix import Nix
|
||||
import pytest
|
||||
|
||||
|
||||
pytestmark = pytest.mark.no_daemon
|
||||
|
||||
|
||||
def test_no_op(nix: Nix):
|
||||
res = nix.nix_env(["--foo"]).run().expect(1)
|
||||
assert "no operation" in res.stderr_plain
|
||||
|
||||
|
||||
def test_unknown_flag(nix: Nix):
|
||||
res = nix.nix_env(["-q", "--foo"]).run().expect(1)
|
||||
assert "unknown flag" in res.stderr_plain
|
||||
Reference in New Issue
Block a user