Tests: fix koji.PathInfo

This should use "topurl". Remove the "weburl" config as it's not needed
anymore.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
This commit is contained in:
Hunor Csomortáni
2019-12-06 12:30:10 +01:00
parent 343f1b9818
commit b2485a6150
2 changed files with 2 additions and 5 deletions

View File

@@ -9,7 +9,6 @@ mbs_api: https://mbs.fedoraproject.org/module-build-service/2/module-builds/
koji:
server: https://koji.fedoraproject.org/kojihub
topurl: https://kojipkgs.fedoraproject.org/
weburl: https://brewweb.stage.engineering.redhat.com/brewroot
# Test data to be used by the tests.
# Items in here are mapped by their name to the tests that use them.
# For example test_scratch_build will use scratch_build.

View File

@@ -20,17 +20,15 @@ class Koji:
:attribute string _server: URL of the Koji hub
:attribute string _topurl: URL of the top-level Koji download location
:attribute string _weburl: URL of the web interface
:attribute koji.ClientSession _session: Koji session
:attribute koji.PathInfo _pathinfo: Koji path
"""
def __init__(self, server, topurl, weburl):
def __init__(self, server, topurl):
self._server = server
self._topurl = topurl
self._weburl = weburl
self._session = koji.ClientSession(self._server)
self._pathinfo = koji.PathInfo(self._weburl)
self._pathinfo = koji.PathInfo(self._topurl)
def get_build(self, nvr_dict):
"""Koji build data for NVR