Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan Riggs committed Feb 9, 2022
1 parent 59eac3e commit 68658c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions tabpy/tabpy_server/handlers/evaluation_plane_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import json
import simplejson
import logging
from tabpy.tabpy_server.app.app_parameters import SettingsParameters
from tabpy.tabpy_server.common.util import format_exception
import requests
from tornado import gen
Expand Down Expand Up @@ -63,7 +62,6 @@ def initialize(self, executor, app):

@gen.coroutine
def _post_impl(self):

body = json.loads(self.request.body.decode("utf-8"))
self.logger.log(logging.DEBUG, f"Processing POST request '{body}'...")
if "script" not in body:
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/server_tests/test_service_info_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_given_server_with_auth_expect_correct_info_response(self):
self.assertTrue("features" in v1)
features = v1["features"]
self.assertDictEqual(
{"authentication": {"methods": {"basic-auth": {}}, "required": True}, 'evaluate_enabled': True},
{"authentication": {"methods": {"basic-auth": {}}, "required": True}, 'evaluate_enabled': True, 'gzip_enabled': True},
features,
)

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

def test_given_server_with_no_auth_and_password_expect_correct_info_response(self):
header = {
Expand Down

0 comments on commit 68658c7

Please sign in to comment.