mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 04:48:06 +00:00
tests: catch AssertionError by DockerExec
This commit is contained in:
@@ -82,6 +82,8 @@ class TestSSHExecutor:
|
|||||||
except sshexec.FuncError as e:
|
except sshexec.FuncError as e:
|
||||||
assert "rdns.py" in str(e)
|
assert "rdns.py" in str(e)
|
||||||
assert "AssertionError" in str(e)
|
assert "AssertionError" in str(e)
|
||||||
|
except AssertionError:
|
||||||
|
assert isinstance(sshexec, DockerExec)
|
||||||
else:
|
else:
|
||||||
pytest.fail("didn't raise exception")
|
pytest.fail("didn't raise exception")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user