Skip to content

Commit

Permalink
Added test for tilda in provider ipc path
Browse files Browse the repository at this point in the history
  • Loading branch information
macbook authored and macbook committed Sep 10, 2018
1 parent d377cd3 commit 5670d19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/core/providers/test_ipc_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ def test_ipc_no_path():
assert ipc.isConnected() is False


def test_ipc_tilda_in_path():
expectedPath = str(pathlib.Path.home()) + '/foo'
assert IPCProvider('~/foo').ipc_path == expectedPath
assert IPCProvider(pathlib.Path('~/foo')).ipc_path == expectedPath


@pytest.fixture
def simple_ipc_server(jsonrpc_ipc_pipe_path):
serv = socket.socket(socket.AF_UNIX)
Expand Down

0 comments on commit 5670d19

Please sign in to comment.