20 lines
368 B
Python
20 lines
368 B
Python
import pytest
|
|
from autossh_mgr.config import TunnelConfig, ensure_dirs
|
|
|
|
|
|
@pytest.fixture
|
|
def config_dir(tmp_path):
|
|
ensure_dirs(tmp_path)
|
|
return tmp_path
|
|
|
|
|
|
@pytest.fixture
|
|
def sample_tunnel():
|
|
return TunnelConfig(
|
|
name="web-service",
|
|
host="relay.example.com",
|
|
user="deploy",
|
|
local_port=8080,
|
|
remote_port=18080,
|
|
)
|