| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d0f869b commit 4e20d1d
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -413,6 +413,8 @@ RUN pip install flashtext && \ | |||
| 413 | 413 | pip install pytorch-lightning && \ | |
| 414 | 414 | pip install datatable && \ | |
| 415 | 415 | pip install sympy && \ | |
| 416 | + # flask is used by agents in the simulation competitions. | ||
| 417 | + pip install flask && \ | ||
| 416 | 418 | # pycrypto is used by competitions team. | |
| 417 | 419 | pip install pycrypto && \ | |
| 418 | 420 | /tmp/clean-layer.sh | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,10 @@ | |||
| 1 | + import unittest | ||
| 2 | + | ||
| 3 | + from flask import Flask, request | ||
| 4 | + | ||
| 5 | + class TestFlask(unittest.TestCase): | ||
| 6 | + def test_request(self): | ||
| 7 | + app = Flask(__name__) | ||
| 8 | + with app.test_request_context('/foo', method='POST'): | ||
| 9 | + assert request.path == '/foo' | ||
| 10 | + assert request.method == 'POST' | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments