From 47b21a0ed5eee2fd6180715c981ec06d4203a522 Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Sat, 25 Jan 2020 22:01:49 +0100 Subject: Fix get_repository call for retrieving binary objects Enhance test case --- test/test_obs_build_api.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'test/test_obs_build_api.py') diff --git a/test/test_obs_build_api.py b/test/test_obs_build_api.py index 95b8fa3..39b6868 100644 --- a/test/test_obs_build_api.py +++ b/test/test_obs_build_api.py @@ -1,4 +1,5 @@ from obsapi.buildapi import ObsBuildApi +from lxml import etree prj = 'home:sbahling:obsapi:test' pkg = 'suse-hello-1.0' @@ -115,10 +116,17 @@ def test_build_get_log(): def test_build_get_repository(): xml = buildapi.get_repository(prj, repo, arch) - assert '' in xml + assert '