Create an instance of the app
(self)
| 57 | self.initial_group_cols = initial_group_cols or ['state'] # Default to just 'state' |
| 58 | |
| 59 | def create_app(self): |
| 60 | """Create an instance of the app""" |
| 61 | # Override the default grouping to just 'state' for tests |
| 62 | original_defaults = QueryEngine.DEFAULT_GROUP_COLS.copy() |
| 63 | for key in original_defaults: |
| 64 | QueryEngine.DEFAULT_GROUP_COLS[key] = self.initial_group_cols |
| 65 | |
| 66 | app = self.app_class( |
| 67 | datadir=self.datadir, |
| 68 | low_time=self.low_time, |
| 69 | high_time=self.high_time |
| 70 | ) |
| 71 | |
| 72 | # Restore original defaults after creating app |
| 73 | QueryEngine.DEFAULT_GROUP_COLS = original_defaults |
| 74 | |
| 75 | return app |
| 76 | |
| 77 | |
| 78 | # Helper functions for navigation |
no outgoing calls
no test coverage detected