From ac92a389d6aae0b3ad592e49320e7466d007af43 Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Thu, 31 Aug 2017 10:46:42 -0400 Subject: [PATCH] Fix module dist_tag separator in tests --- tests/test_build/test_build.py | 2 +- tests/test_builder/test_koji.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_build/test_build.py b/tests/test_build/test_build.py index cc8a7575..3f0d3a4e 100644 --- a/tests/test_build/test_build.py +++ b/tests/test_build/test_build.py @@ -292,7 +292,7 @@ class TestBuild(unittest.TestCase): # Check that the components are added to buildroot after the batch # is built. buildroot_groups = [] - buildroot_groups.append(set([u'module-build-macros-0.1-1.module_fc4ed5f7.src.rpm-1-1'])) + buildroot_groups.append(set([u'module-build-macros-0.1-1.module+fc4ed5f7.src.rpm-1-1'])) buildroot_groups.append(set([u'perl-Tangerine?#f24-1-1', u'perl-List-Compare?#f25-1-1'])) buildroot_groups.append(set([u'tangerine?#f23-1-1'])) diff --git a/tests/test_builder/test_koji.py b/tests/test_builder/test_koji.py index 762e4d89..55e3f726 100644 --- a/tests/test_builder/test_koji.py +++ b/tests/test_builder/test_koji.py @@ -126,7 +126,7 @@ class TestKojiBuilder(unittest.TestCase): "id": 9000, "name": "foo", "version": "1.0", - "release": "1.module_e0095747", + "release": "1.module+e0095747", }] builder.koji_session.untaggedBuilds.return_value = untagged @@ -134,7 +134,7 @@ class TestKojiBuilder(unittest.TestCase): expected = tagged_build self.assertEquals(actual, expected) builder.koji_session.tagBuild.assert_called_once_with( - 1, 'foo-1.0-1.module_e0095747') + 1, 'foo-1.0-1.module+e0095747') def test_get_build_by_artifact_when_nothing_exists(self): """ Test the _get_build_by_artifact super un-happy path.