mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-05 07:18:35 +01:00
21 lines
529 B
Python
21 lines
529 B
Python
import pytest
|
|
|
|
from dvc.fs.pool import get_connection
|
|
from dvc.fs.ssh.connection import SSHConnection
|
|
from tests.remotes.ssh import TEST_SSH_KEY_PATH, TEST_SSH_USER
|
|
|
|
|
|
def test_doesnt_swallow_errors(ssh_server):
|
|
class MyError(Exception):
|
|
pass
|
|
|
|
with pytest.raises(MyError):
|
|
with get_connection(
|
|
SSHConnection,
|
|
host=ssh_server.host,
|
|
port=ssh_server.port,
|
|
username=TEST_SSH_USER,
|
|
key_filename=TEST_SSH_KEY_PATH,
|
|
):
|
|
raise MyError
|