コード例 #1
0
    def test_ursine_rpms_are_added(self):
        self._build_srpm()

        with open(self.spec_file, "r") as f:
            content = f.read()

        # Stream collision ursine RPMs
        assert "# modulefoo-s-v-c\n" in content
        for nevr in ["foo-0:1.0-1.fc28", "bar-0:2.0-1.fc28"]:
            assert KojiModuleBuilder.format_conflicts_line(
                nevr) + "\n" in content

        # Conflicting ursine RPMs
        for nevr in ["pizza-0:4.0-1.fc32", "spaghetti-0:3.0-1.fc32"]:
            assert KojiModuleBuilder.format_conflicts_line(
                nevr) + "\n" in content
コード例 #2
0
    def test_filtered_rpms_are_added(self):
        self._build_srpm()

        with open(self.spec_file, "r") as f:
            content = f.read()
        for nevr in ["baz-devel-0:0.1-6.fc28", "baz-doc-0:0.1-6.fc28"]:
            assert KojiModuleBuilder.format_conflicts_line(
                nevr) + "\n" in content