Skip to content

Commit 7d26597

Browse files
authored
Merge pull request #34 from abhijo89-uc/33
Fix for #33
2 parents 6abd092 + 1460265 commit 7d26597

File tree

6 files changed

+8
-3
lines changed

6 files changed

+8
-3
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.5-alpine
1+
FROM python:3.7-alpine
22
# Install packages
33
RUN apk add --no-cache libcurl
44

@@ -24,5 +24,5 @@ RUN flake8 resttest3 --count --exit-zero --max-complexity=30 --max-line-length=1
2424
# RUN python -m pytest tests
2525
RUN coverage run --source resttest3 -m pytest tests/test_*.py
2626
RUN coverage report
27-
#RUN resttest3 --url https://www.courtlistener.com --test tests/fun_test.yaml
27+
RUN resttest3 --url https://www.courtlistener.com --test tests/fun_test.yaml
2828

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include *.yaml
2+
include resttest3/reports/template/*.html
23
include LICENSE
34
include requirements.txt
45
global-exclude *.pyc

resttest3/binding.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
logger = logging.getLogger('resttest3')
77

8+
89
class Context:
910
""" Manages binding of variables & generators, with both variable name and generator name being strings """
1011

resttest3/ext/validator_jsonschema.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def validate(self, body=None, headers=None, context=None):
2828
except jsonschema.exceptions.ValidationError:
2929
return self.__failed("JSON Schema Validation Failed")
3030
except json.decoder.JSONDecodeError:
31-
trace = traceback.format_exc()
31+
# trace = traceback.format_exc()
3232
return self.__failed("Invalid response json body")
3333

3434
def __failed(self, message):

resttest3/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def parse_headers(header_string):
180180
# Note: HTTP headers are *case-insensitive* per RFC 2616
181181
return [(k.lower(), v) for k, v in header_msg.items()]
182182

183+
183184
def register_extensions(modules):
184185
""" Import the modules and register their respective extensions """
185186
if isinstance(modules, str): # Catch supplying just a string arg

setup.py

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
license='Apache License, Version 2.0',
3333
install_requires=install_requires,
3434
tests_require=install_requires,
35+
include_package_data=True,
36+
package_data={'report': ['reports/template/*.html']},
3537
test_suite="resttest3.tests",
3638
entry_points={
3739
'console_scripts': ['resttest3=resttest3.runner:main'],

0 commit comments

Comments
 (0)