Skip to content

Commit

Permalink
🎨 remove unnecesasry comment (black now reformats code)
Browse files Browse the repository at this point in the history
🎨 change commented lines to docstring for test app
  • Loading branch information
monkut committed Nov 7, 2022
1 parent 63e8f57 commit 15532f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions tests/test_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def test_exception_handler_on_web_request(self):
def test_wsgi_script_binary_support_with_content_encoding(self):
"""
Ensure that response body is base64 encoded when BINARY_SUPPORT is enabled and Content-Encoding header is present.
""" # don't linebreak so that whole line is shown during nosetest readout
"""
lh = LambdaHandler("tests.test_binary_support_settings")

text_plain_event = {
Expand Down Expand Up @@ -284,7 +284,7 @@ def test_wsgi_script_binary_support_without_content_encoding_edgecases(
):
"""
Ensure zappa response bodies are NOT base64 encoded when BINARY_SUPPORT is enabled and the mimetype is "application/json" or starts with "text/".
""" # don't linebreak so that whole line is shown during nosetest readout
"""

lh = LambdaHandler("tests.test_binary_support_settings")

Expand Down Expand Up @@ -319,7 +319,7 @@ def test_wsgi_script_binary_support_without_content_encoding(
):
"""
Ensure zappa response bodies are base64 encoded when BINARY_SUPPORT is enabled and Content-Encoding is absent.
""" # don't linebreak so that whole line is shown during nosetest readout
"""

lh = LambdaHandler("tests.test_binary_support_settings")

Expand Down
10 changes: 5 additions & 5 deletions tests/test_wsgi_binary_support_app.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
###
# This test application exists to confirm how Zappa handles WSGI application
# _responses_ when Binary Support is enabled.
###
"""
This test application exists to confirm how Zappa handles WSGI application
_responses_ when Binary Support is enabled.
"""

import gzip
import json

from flask import Flask, Response, send_file
from flask import Flask, Response

app = Flask(__name__)

Expand Down

0 comments on commit 15532f1

Please sign in to comment.