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