tests: adapt to logging changes

This commit is contained in:
Frédéric Péters 2018-08-17 15:19:35 +02:00
parent 2fe928f709
commit b40ba221e0
2 changed files with 3 additions and 3 deletions

View File

@ -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'

View File

@ -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():