Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ RUN pip install flashtext && \
pip install pytorch-lightning && \
pip install datatable && \
pip install sympy && \
# flask is used by agents in the simulation competitions.
pip install flask && \
# pycrypto is used by competitions team.
pip install pycrypto && \
/tmp/clean-layer.sh
Expand Down
10 changes: 10 additions & 0 deletions tests/test_flask.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import unittest

from flask import Flask, request

class TestFlask(unittest.TestCase):
def test_request(self):
app = Flask(__name__)
with app.test_request_context('/foo', method='POST'):
assert request.path == '/foo'
assert request.method == 'POST'