There was an error while loading. Please reload this page.
1 parent b9eaa59 commit 70c6ad3Copy full SHA for 70c6ad3
1 file changed
tests/test_ro_functional.py
@@ -74,6 +74,17 @@ def test_rest_xmlrpc_detection():
74
def test_apikey_error_scraping():
75
# Ensure the API key does not leak into any requests exceptions
76
fakekey = "FOOBARMYKEY"
77
+
78
+ with pytest.raises(Exception) as e:
79
+ _open_bz("https://bugzilla.redhat.nopedontexist",
80
+ force_rest=True, api_key=fakekey)
81
+ assert fakekey not in str(e.value)
82
83
84
85
+ force_xmlrpc=True, api_key=fakekey)
86
87
88
with pytest.raises(Exception) as e:
89
_open_bz("https://httpstat.us/502&foo",
90
force_xmlrpc=True, api_key=fakekey)
0 commit comments