tests: catch AssertionError by DockerExec

This commit is contained in:
missytake
2025-08-26 15:31:52 +02:00
parent a23e8a8e59
commit 00342dd667

View File

@@ -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")