Set `Bug.weburl` that is compatible with the REST API (fixes #178) · klsbecker/python-bugzilla@7798f81 · GitHub
Skip to content

Commit 7798f81

Browse files
crazyscientistcrobinso
authored andcommitted
Set Bug.weburl that is compatible with the REST API (fixes python-bugzilla#178)
Instead of replacing the substring 'xmlrpc.cgi' in the Bugzilla URL, the URL is now constructed by explicitly using the `netloc` of the Bugzilla URL.
1 parent c6bfae5 commit 7798f81

3 files changed

Lines changed: 21 additions & 3 deletions

File tree

bugzilla/bug.py

Lines changed: 11 additions & 2 deletions

tests/data/clioutput/test_query2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ATTRIBUTE[target_milestone]: rc
5757
ATTRIBUTE[target_release]: ['---']
5858
ATTRIBUTE[url]:
5959
ATTRIBUTE[version]: ['5.8']
60-
ATTRIBUTE[weburl]: https:///TESTSUITEMOCK
60+
ATTRIBUTE[weburl]: https:///show_bug.cgi?id=1165434
6161
ATTRIBUTE[whiteboard]: genericwhiteboard
6262

6363

tests/test_api_bug.py

Lines changed: 9 additions & 0 deletions

0 commit comments

Comments
 (0)