def disable_test_all_conan_versions_build(self) -> None:
     set_home_directory()
     releases = PrepareConanRelease.get_accepted_approval_releases(
         ProjectDetails())
     conan_details = ConanReleaseDetails(ProjectDetails())
     for release in releases:
         DeployConanRelease.test_conan_build_passes(conan_details, release)
    def __init__(self, old_version: Version, new_version: Version, publish_release: bool,
                 project_details: ProjectDetails) -> None:
        self.project_details = project_details
        self.locations = ReleaseLocations(project_details)
        self.conan_details = ConanReleaseDetails(project_details)

        self.old_version = old_version
        self.new_version = new_version
        self.push_to_production = publish_release

        self.old_single_header = F"{project_details.library_folder_name}.{old_version.get_version_text()}.hpp"
        self.new_single_header = F"{project_details.library_folder_name}.{new_version.get_version_text()}.hpp"

        self.release_new_single_header = F"{release_constants.release_dir}/{self.new_single_header}"

        self.new_release_notes_path = os.path.join(release_constants.release_notes_dir,
                                                   F'relnotes_{new_version.get_version_text_without_v()}.md')
 def disabled_test_entry_point_for_uncommitted_changes(self) -> None:
     set_home_directory()
     repo = Repo(ConanReleaseDetails(ProjectDetails()).conan_repo_dir)
     GitUtilities.check_no_uncommitted_changes(repo)
 def test_can_find_conan_repo(self) -> None:
     set_home_directory()
     # Validate that function does not throw exception.
     # Will fail if person running test has not cloned conan-center-index
     directory = ConanReleaseDetails.get_conan_repo_directory()
     print(directory)
 def test_conan_approvaltests_dir(self) -> None:
     conan_release_details = ConanReleaseDetails(ProjectDetails())
     self.assertTrue(
         conan_release_details.conan_approvaltests_dir.endswith(
             'approvaltests.cpp'))