From 35679d10b3add2b405b9ee0742d7f260a68f98fa Mon Sep 17 00:00:00 2001 From: Max Lin Date: Tue, 26 Sep 2017 19:03:22 +0800 Subject: [PATCH] tests: fix testsuite for virtually accept --- tests/api_tests.py | 2 +- tests/obs.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/api_tests.py b/tests/api_tests.py index 21605321..a38fa55e 100644 --- a/tests/api_tests.py +++ b/tests/api_tests.py @@ -232,7 +232,7 @@ class TestApiCalls(unittest.TestCase): self.assertEqual('new', self.obs.requests[rq]['review']) self.assertEqual('review', self.obs.requests[rq]['request']) self.assertEqual(self.api.get_prj_pseudometa('openSUSE:Factory:Staging:A'), - {'requests': [{'id': 123, 'package': 'gcc', 'author': 'Admin'}]}) + {'requests': [{'id': 123, 'package': 'gcc', 'author': 'Admin', 'type': 'submit'}]}) def test_create_package_container(self): """Test if the uploaded _meta is correct.""" diff --git a/tests/obs.py b/tests/obs.py index 2a8f6f51..389c7a54 100644 --- a/tests/obs.py +++ b/tests/obs.py @@ -228,8 +228,8 @@ class OBS(object): 'C': { 'project': 'openSUSE:Factory:Staging:C', 'title': 'A project ready to be accepted', - 'description': ('requests:\n- {id: 501, package: apparmor, author: Admin}\n' - '- {id: 502, package: mariadb, author: Admin}'), + 'description': ('requests:\n- {id: 501, package: apparmor, author: Admin, type: submit}\n' + '- {id: 502, package: mariadb, author: Admin, type: submit}'), }, 'J': { 'project': 'openSUSE:Factory:Staging:J', @@ -588,7 +588,7 @@ class OBS(object): meta = self.meta[key] # Simulate missing _meta revision missing puppet request. - meta = meta.replace('- {author: Admin, id: 321, package: puppet}', '') + meta = meta.replace('- {author: Admin, id: 321, package: puppet, type: submit}', '') response = (200, headers, meta) except Exception as e: if DEBUG: