-
Notifications
You must be signed in to change notification settings - Fork 5
Conversation
@@ -1,4 +1,4 @@ | |||
black==19.3b0 | |||
gunicorn==19.9.0 | |||
pytest-flake8==1.0.4 | |||
pytest==4.2.1 | |||
pytest==5.2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was facing an issue where pytest would fail to run. Looks like it's linked to this issue: pytest-dev/pytest#3280
The new version is the latest released.
Logs are below from evergreen task
[2019/10/01 12:17:22.423] File "/data/mci/dd436d719c53531abd0929e7d98004f2/src/venv/bin/pytest", line 10, in <module>
[2019/10/01 12:17:22.423] sys.exit(main())
[2019/10/01 12:17:22.423] File "/data/mci/dd436d719c53531abd0929e7d98004f2/src/venv/lib/python3.7/site-packages/_pytest/config/__init__.py", line 61, in main
[2019/10/01 12:17:22.423] config = _prepareconfig(args, plugins)
[2019/10/01 12:17:22.423] File "/data/mci/dd436d719c53531abd0929e7d98004f2/src/venv/lib/python3.7/site-packages/_pytest/config/__init__.py", line 182, in _prepareconfig
[2019/10/01 12:17:22.423] config = get_config()
[2019/10/01 12:17:22.423] File "/data/mci/dd436d719c53531abd0929e7d98004f2/src/venv/lib/python3.7/site-packages/_pytest/config/__init__.py", line 156, in get_config
[2019/10/01 12:17:22.423] pluginmanager.import_plugin(spec)
[2019/10/01 12:17:22.423] File "/data/mci/dd436d719c53531abd0929e7d98004f2/src/venv/lib/python3.7/site-packages/_pytest/config/__init__.py", line 533, in import_plugin
[2019/10/01 12:17:22.423] __import__(importspec)
[2019/10/01 12:17:22.423] File "/data/mci/dd436d719c53531abd0929e7d98004f2/src/venv/lib/python3.7/site-packages/_pytest/tmpdir.py", line 25, in <module>
[2019/10/01 12:17:22.423] class TempPathFactory(object):
[2019/10/01 12:17:22.423] File "/data/mci/dd436d719c53531abd0929e7d98004f2/src/venv/lib/python3.7/site-packages/_pytest/tmpdir.py", line 35, in TempPathFactory
[2019/10/01 12:17:22.423] lambda p: Path(os.path.abspath(six.text_type(p)))
[2019/10/01 12:17:22.423] TypeError: attrib() got an unexpected keyword argument 'convert'```
from flask_restplus import Api, Resource, fields | ||
|
||
|
||
def add_health_endpoints(api: Api): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a docstring to this function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
health_model = ns.model("HealthCheckResponse", {"online": fields.Boolean}) | ||
|
||
@ns.route("") | ||
class Health(Resource): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a docstring to this class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
No description provided.