Project

General

Profile

0009-tests-remove-non-apps-installable-ressource-class-30.patch

Benjamin Dauvergne, 08 Feb 2019 08:43 AM

Download (1000 Bytes)

View differences:

Subject: [PATCH 09/13] tests: remove non apps installable ressource class
 (#30458)

 tests/test_generic_endpoint.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
tests/test_generic_endpoint.py
335 335

  
336 336
def test_https_warnings(app, db, monkeypatch, httpbin_secure, relax_openssl):
337 337
    from requests.exceptions import SSLError
338

  
339
    class Resource(BaseResource, HTTPResource):
340
        class Meta:
341
            app_label = 'dummy'
338
    from passerelle.apps.atos_genesys.models import Resource
342 339

  
343 340
    resource = Resource(slug='slug', verify_cert=True)
344 341
    with pytest.raises(SSLError):
345
-