Esempio n. 1
0
    def confirm_previous_release_still_works(details: ReleaseDetails) -> None:
        last_approved = max(PrepareConanRelease.get_accepted_approval_releases(
            details.project_details),
                            key=lambda x: Version.from_string_without_v(x))

        DeployConanRelease.test_conan_build_passes(details.conan_details,
                                                   last_approved)
Esempio n. 2
0
 def test_sorting(self) -> None:
     versions = ['10.2.3', '10.10.4', '9.1.1', '10.2.4']
     m = max(versions, key=lambda x: Version.from_string_without_v(x))
     self.assertEqual(m, '10.10.4')