Files
dvc/tests/unit/remote/ssh/test_pool.py
T

12 lines
248 B
Python

import pytest
from dvc.remote.ssh.pool import ssh_connection
def test_doesnt_swallow_errors(ssh_server):
class MyError(Exception):
pass
with pytest.raises(MyError), ssh_connection(**ssh_server.test_creds):
raise MyError