Kartones / flask-calendar

Simple Python & Flask web-calendar
The Unlicense
215 stars 76 forks source link

Create app factory to simplify config substitution in tests #29

Closed davidag closed 5 years ago

davidag commented 5 years ago

This should make it easier to change configuration options in tests. Besides that, we have more control over how and when the app object is created.

davidag commented 5 years ago

For the record, I was following the Application Factory pattern which has a couple of benefits over instantiating the app at the module-level (especially for testing).