summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorScott Bahling <sbahling@suse.com>2020-02-13 15:28:00 +0100
committerScott Bahling <sbahling@suse.com>2020-02-13 15:28:00 +0100
commit5b3a2b608c4c4c5d4df4b07d9322279349085dc9 (patch)
tree7ac6b2131e941b264a033b98a7de2c911b125e26 /test
parentb2e96e97ccbe3b6b670a8366dc1ff5ed775deddf (diff)
downloadobsapi-5b3a2b608c4c4c5d4df4b07d9322279349085dc9.tar.gz
obsapi-5b3a2b608c4c4c5d4df4b07d9322279349085dc9.tar.xz
obsapi-5b3a2b608c4c4c5d4df4b07d9322279349085dc9.zip
Make sure build api arguments match order of OBS api path items.
This of course breaks the API, but hopefully we stay consistent from this point forward
Diffstat (limited to 'test')
-rw-r--r--test/test_obs_build_api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_obs_build_api.py b/test/test_obs_build_api.py
index ff271ab..573e762 100644
--- a/test/test_obs_build_api.py
+++ b/test/test_obs_build_api.py
@@ -103,7 +103,7 @@ def test_build_get_builddepinfo(requests_mock):
uri = '{}/build/{}/{}/{}/_builddepinfo'.format(buildapi.apiurl, prj, repo, arch)
text = '<builddepinfo></builddepinfo>'
requests_mock.get(uri, text=text)
- xml = buildapi.get_builddepinfo(prj, pkg, repo, arch)
+ xml = buildapi.get_builddepinfo(prj, repo, arch, pkg)
assert xml == text
@@ -133,7 +133,7 @@ def test_build_get_buildinfo(requests_mock):
uri = '{}/build/{}/{}/{}/{}/_buildinfo'.format(buildapi.apiurl, prj, repo, arch, pkg)
text = '<buildinfo></buildinfo>'
requests_mock.get(uri, text=text)
- xml = buildapi.get_buildinfo(prj, pkg, repo, arch)
+ xml = buildapi.get_buildinfo(prj, repo, arch, pkg)
assert xml == text