#1509 cli: fix dist-git unit tests
Merged 3 years ago by praiskup. Opened 3 years ago by praiskup.
Unknown source dist-git-unit-tests-fix  into  master

file modified
+2 -2
@@ -114,7 +114,7 @@

  

          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 @@

  

          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",

I thought the first call() argument was needed to represent "self/cls"
in the method call, but it is not necessary there.

The build is passing, so +1

I'll merge this earlier, so we can experiment better with the dist-git proposal on stg.

Pull-Request has been merged by praiskup

3 years ago