From 92f28f33d59a397c820daf1b899bdd50724dac02 Mon Sep 17 00:00:00 2001 From: Scott Bahling Date: Fri, 24 Aug 2018 19:02:31 +0200 Subject: Add initial person api --- test/test_obs_person_api.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/test_obs_person_api.py (limited to 'test') diff --git a/test/test_obs_person_api.py b/test/test_obs_person_api.py new file mode 100644 index 0000000..5e8e1f3 --- /dev/null +++ b/test/test_obs_person_api.py @@ -0,0 +1,25 @@ +from obsapi.personapi import ObsPersonApi + +prj = 'home:sbahling:obsapi:test' +pkg = 'suse-hello-1.0' +repo = 'SLE_12_SP3' +arch = 'x86_64' + +personapi = ObsPersonApi(apiurl='https://api.opensuse.org') + + +def test_person_get(): + xml = personapi.get() + assert '' in xml + + +def test_person_get_user(): + user = 'Admin' + xml = personapi.get(user) + assert '' in xml + assert '