From 2b3e6fda33c6bc3ddbd908bc0202f0adb656b57e Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Fri, 8 May 2020 16:42:19 +0200
Subject: [PATCH] fixed assumption about tmp file path format

---
 test/test_ims_worker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test_ims_worker.py b/test/test_ims_worker.py
index 136f37a8..7906c5bb 100644
--- a/test/test_ims_worker.py
+++ b/test/test_ims_worker.py
@@ -33,7 +33,7 @@ def test_otrs_exports(data_config_filename, data_config, mocker):
     args, kwargs = mocked_run.call_args
     called_with = args[0]
 
-    t = r'^rsync -aP --rsh="ssh -l {user} -p 22 -i {key_file} -o \'UserKnownHostsFile {known_hosts}\'" /\w+/\w+/\* {destination}$'  # noqa
+    t = r'^rsync -aP --rsh="ssh -l {user} -p 22 -i {key_file} -o \'UserKnownHostsFile {known_hosts}\'" /\S+/\* {destination}$'  # noqa
 
     p = t.format(
         user=otrs_config['username'],
-- 
GitLab