Skip to content

Commit

Permalink
✅ Fix test for python3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
pwwang committed May 12, 2022
1 parent 0c6d227 commit 46f5645
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_cmdy.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,12 @@ def test_module_baking():
c = sh.echo() # ran
assert isinstance(c, sh.CmdyResult)


def test_module_baking2():
sh = cmdy(n=True)
sh2 = sh(n=True, e=True)
c = sh2.echo(_=1).h()
assert c.strcmd == "echo -n -e 1"
c = sh2.echo(_=1)
assert c == "1"

assert (
sh.CmdyExecNotFoundError
Expand Down

0 comments on commit 46f5645

Please sign in to comment.