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"