From 02058c2fa35e66d6ee1f39813213395916d76edc Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Sep 18 2020 10:16:58 +0000 Subject: cli: fix dist-git unit tests I thought the first call() argument was needed to represent "self/cls" in the method call, but it is not necessary there. --- diff --git a/cli/tests/test_distgit.py b/cli/tests/test_distgit.py index 542fa3e..f102c9c 100644 --- a/cli/tests/test_distgit.py +++ b/cli/tests/test_distgit.py @@ -114,7 +114,7 @@ class TestDistGitMethodPackage(object): call = f_patch_package_distgit[0].call_args_list[0] assert call == mock.call( - call[0][0], None, "project", "package", "distgit", + None, "project", "package", "distgit", {'distgit': None, 'namespace': None, 'committish': None, @@ -132,7 +132,7 @@ class TestDistGitMethodPackage(object): call = f_patch_package_distgit[1].call_args_list[0] assert call == mock.call( - call[0][0], "@owner", "project", "package", "distgit", + "@owner", "project", "package", "distgit", {'distgit': "centos", 'namespace': "ns", 'committish': "master",