tests: do not create a fake ressource model (#30221)
This commit is contained in:
parent
47d5994e8e
commit
5793a44733
|
@ -335,12 +335,9 @@ def test_endpoint_cookies(app, db, monkeypatch, httpbin):
|
|||
|
||||
def test_https_warnings(app, db, monkeypatch, httpbin_secure, relax_openssl):
|
||||
from requests.exceptions import SSLError
|
||||
from passerelle.contrib.maarch.models import Maarch
|
||||
|
||||
class Resource(BaseResource, HTTPResource):
|
||||
class Meta:
|
||||
app_label = 'dummy'
|
||||
|
||||
resource = Resource(slug='slug', verify_cert=True)
|
||||
resource = utils.make_resource(Maarch, wsdl_url='https://example.com/', slug='slug', verify_cert=True)
|
||||
with pytest.raises(SSLError):
|
||||
resource.requests.get(httpbin_secure.join('/get/'))
|
||||
resource.verify_cert = False
|
||||
|
|
Loading…
Reference in New Issue