mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 15:28:28 +01:00
* tests: use remote fixtures * tests: use remote fixtures for data cloud tests * tests: treat remotes as tmp dirs
21 lines
537 B
Python
21 lines
537 B
Python
import pytest
|
|
|
|
from dvc.remote.pool import get_connection
|
|
from dvc.remote.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
|