#21 Fix calling the _process_single_package and _process_dist_git in pdc_retired_packages
Merged 3 years ago by pingou. Opened 3 years ago by pingou.

@@ -46,9 +46,9 @@ 

          pdc = pdc_client_for_config(config)

  

          if message.topic.endswith("git.receive"):

-             PDCRetiredPackages._process_single_package(config, pdc, message)

+             self._process_single_package(config, pdc, message)

          else:

-             PDCRetiredPackages._process_dist_git(config, pdc)

+             self._process_dist_git(config, pdc)

  

      def _process_dist_git(self, config, pdc):

          """ Updates PDC retirement status from analyzing dist-git.

Since we move to actual, instanciated, object, we need to call the
methods using self. otherwise, it won't work as expected.

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

Metadata Update from @nphilipp:
- Request assigned

3 years ago

Hmm, now why do the tests not catch it...?

Because 100% coverage doesn't mean you're testing the integration of the different methods together...

Build succeeded.

  • tox : SUCCESS in 3m 47s

going to merge it as is to unblock toddlers in openshift

Pull-Request has been merged by pingou

3 years ago