Skip to content

Commit

Permalink
fix tmp dir in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Trygve Aspenes committed Jun 16, 2023
1 parent ae6b5ac commit 6370294
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trollmoves/tests/test_ssh_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,11 @@ def test_scp_move(self, mock_scp_client, mock_sshclient):
@patch('scp.SCPClient', autospec=True)
def test_move_it_destination_types(self, patch_scpclient, patch_connect):
"""Test move_it handles destination string and urlparse types."""
import os
from trollmoves.movers import move_it

expected_destination = urlparse("scp://hostname/path/name")
pathname = "/tmp/dest.ext"
pathname = os.path.join(self.dest_dir, "dest.ext")

destination = "scp://hostname/path/name"
ret_destination = move_it(pathname, destination)
Expand Down

0 comments on commit 6370294

Please sign in to comment.