json serialize additional types in protonmsg

Fixes: https://pagure.io/koji/issue/741
This commit is contained in:
Tomas Kopecek 2017-12-21 13:10:01 +01:00 committed by Mike McLean
parent f869eb4158
commit 3bfcc6a66e
2 changed files with 11 additions and 2 deletions

View file

@ -153,7 +153,8 @@ class TestProtonMsg(unittest.TestCase):
user='test-user', **build)
def test_prep_repo_init(self):
protonmsg.prep_repo_init('postRepoInit', tag={'name': 'test-tag'}, repo_id=1234)
protonmsg.prep_repo_init('postRepoInit', tag={'name': 'test-tag',
'arches': set(['x86_64', 'i386'])}, repo_id=1234)
self.assertMsg('repo.init', type='RepoInit', tag='test-tag', repo_id=1234)
def test_prep_repo_done(self):