tests: adapt to logging changes
This commit is contained in:
parent
2fe928f709
commit
b40ba221e0
|
@ -96,10 +96,10 @@ def test_proxy_logger(mocked_get, caplog, app, arcgis):
|
|||
else:
|
||||
assert log.message == 'this is an info test'
|
||||
|
||||
log = ResourceLog.objects.filter(appname='arcgis', slug='test').delete()
|
||||
caplog.clear()
|
||||
resp = app.get('/arcgis/test/district', params={'lon': 6.172122, 'lat': 48.673836}, status=200)
|
||||
|
||||
logger.debug('new token: %s (timeout %ss)', 'hfgjsfg=', 45)
|
||||
|
||||
# Resource Custom DB Logger
|
||||
log = ResourceLog.objects.filter(appname='arcgis', slug='test').first()
|
||||
assert log.appname == 'arcgis'
|
||||
|
|
|
@ -123,7 +123,7 @@ def test_jsonresponse_error_header():
|
|||
assert 'err_class' in data
|
||||
assert 'err' in data
|
||||
assert data['err'] == 1
|
||||
assert data['err_class'] == 'test_jsonresponse.CustomException'
|
||||
assert data['err_class'] == 'tests.test_jsonresponse.CustomException'
|
||||
assert result.status_code == 200
|
||||
|
||||
def test_jsonresponse_with_http4O4_exception():
|
||||
|
|
Loading…
Reference in New Issue