From 61150fdf7e8d1850c58f56118b885abcdd3a558d Mon Sep 17 00:00:00 2001 From: Ansible Deploy Date: Mon, 30 Aug 2021 15:52:40 +0000 Subject: [PATCH] fixed tests for fixed svn add --- elab_users/users.py | 2 -- tests/test_elab_users_users.py | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/elab_users/users.py b/elab_users/users.py index 9ee4f89..34ca518 100644 --- a/elab_users/users.py +++ b/elab_users/users.py @@ -71,8 +71,6 @@ class ElabUser: out_file = tmpdir / filename handler.check_call(["cp", str(in_file), str(out_file)]) # add and commit the changes - print(tmpdir) - print(list(tmpdir.iterdir())) handler.check_call( ["svn", "add", "--force", str(tmpdir) + "/"] # noqa: S604 ) diff --git a/tests/test_elab_users_users.py b/tests/test_elab_users_users.py index aac2324..2567424 100644 --- a/tests/test_elab_users_users.py +++ b/tests/test_elab_users_users.py @@ -93,10 +93,10 @@ def test_elabuser_create_new_repo(stub_handler): called = stub_handler.stack[-2] assert called.func == "check_call" - assert called.args[:2] == ["svn", "add"] - assert called.args[2].startswith("/tmp/") # noqa: S108 - assert called.args[2].endswith("/*") - assert called.kargs == {"shell": True} + assert called.args[:3] == ["svn", "add", "--force"] + assert called.args[3].startswith("/tmp/") # noqa: S108 + assert called.args[3].endswith("/") + assert called.kargs == {} called = stub_handler.stack[-1] assert called.func == "check_call"