Commit ba294c86 authored by Kat Hößel's avatar Kat Hößel
Browse files

Stuff I forgot to commit

parent 09881883
click==7.1.2
Flask==1.1.2
freezegun==1.1.0
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
nose==1.3.7
python-dateutil==2.8.2
six==1.16.0
Werkzeug==1.0.1
......@@ -7,7 +7,7 @@ app.config["DEBUG"] = True
@app.route('/time', methods=['GET'])
def home():
return datetime.now().ctime()
return '{}\n'.format(datetime.now().ctime())
if __name__ == '__main__':
app.run()
......@@ -22,8 +22,8 @@ def test_index():
# check that /time endpoint works
expected = 200
resp = web.get('/time')
assert_equal(resp.status_code, expected), "Expected status %r is not %r" % (
expected, resp.status_code)
assert_equal(resp.status_code, expected), "Expected status {} is not {}".\
format(expected, resp.status_code)
assert resp.data, "Response data is empty."
def test_date():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment