Skip to content

Commit 68658c7

Browse files
author
Logan Riggs
committed
updates
1 parent 59eac3e commit 68658c7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tabpy/tabpy_server/handlers/evaluation_plane_handler.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import json
33
import simplejson
44
import logging
5-
from tabpy.tabpy_server.app.app_parameters import SettingsParameters
65
from tabpy.tabpy_server.common.util import format_exception
76
import requests
87
from tornado import gen
@@ -63,7 +62,6 @@ def initialize(self, executor, app):
6362

6463
@gen.coroutine
6564
def _post_impl(self):
66-
6765
body = json.loads(self.request.body.decode("utf-8"))
6866
self.logger.log(logging.DEBUG, f"Processing POST request '{body}'...")
6967
if "script" not in body:

tests/unit/server_tests/test_service_info_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_given_server_with_auth_expect_correct_info_response(self):
100100
self.assertTrue("features" in v1)
101101
features = v1["features"]
102102
self.assertDictEqual(
103-
{"authentication": {"methods": {"basic-auth": {}}, "required": True}, 'evaluate_enabled': True},
103+
{"authentication": {"methods": {"basic-auth": {}}, "required": True}, 'evaluate_enabled': True, 'gzip_enabled': True},
104104
features,
105105
)
106106

@@ -126,7 +126,7 @@ def test_server_with_no_auth_expect_correct_info_response(self):
126126
v1 = versions["v1"]
127127
self.assertTrue("features" in v1)
128128
features = v1["features"]
129-
self.assertDictEqual({'evaluate_enabled': True}, features)
129+
self.assertDictEqual({'evaluate_enabled': True, 'gzip_enabled': True}, features)
130130

131131
def test_given_server_with_no_auth_and_password_expect_correct_info_response(self):
132132
header = {

0 commit comments

Comments
 (0)