Guard app.run with __main__ #14

Closed
opened 2026-11-06 05:12:24 +01:00 by Tirsvad · 0 comments
Owner

Add a main() function that calls app.run with the host, port and debug flag from constants.py, called only under if __name__ == "__main__". Tests use a stub so no server is started.

Phase: MIL-003

Add a `main()` function that calls `app.run` with the host, port and debug flag from `constants.py`, called only under `if __name__ == "__main__"`. Tests use a stub so no server is started. Phase: MIL-003
Tirsvad added this to the MIL-003 Command line and __main__ milestone 2026-11-06 05:12:24 +01:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tirsvad-Udemy-100-days-of-code/054-flask#14