MCPcopy Create free account
hub / github.com/pallets/flask / test_jsonify_datetime

Function test_jsonify_datetime

tests/test_json.py:136–142  ·  view source on GitHub ↗
(app, client, value)

Source from the content-addressed store, hash-verified

134 "value", [datetime.datetime(1973, 3, 11, 6, 30, 45), datetime.date(1975, 1, 5)]
135)
136def test_jsonify_datetime(app, client, value):
137 @app.route("/")
138 def index():
139 return flask.jsonify(value=value)
140
141 r = client.get()
142 assert r.json["value"] == http_date(value)
143
144
145class FixedOffset(datetime.tzinfo):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected