MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / TestFLASK001

Class TestFLASK001

tests/unit/test_missing_rules.py:257–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255# ============================================================
256
257class TestFLASK001:
258 def test_app_run_debug_fires(self):
259 code = "app.run(host='0.0.0.0', debug=True)"
260 assert fires(code, "FLASK001"), "FLASK001 must fire: app.run(debug=True)"
261
262 def test_app_debug_assignment_fires(self):
263 code = "app.debug = True"
264 assert fires(code, "FLASK001"), "FLASK001 must fire: app.debug = True"
265
266 def test_debug_false_safe(self):
267 code = "app.run(host='0.0.0.0', debug=False)"
268 assert not_fires(code, "FLASK001"), "FLASK001 must NOT fire for debug=False"
269
270
271# ============================================================

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected