File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -522,12 +522,15 @@ def create_or_replace_views(engine) -> None:
522522 conn .execute (text (TARGET_OVERVIEW_VIEW ))
523523 conn .commit ()
524524
525+
525526def refresh_views_for_db_path (db_path : str | Path ) -> None :
526527 """Refresh SQL views for an existing SQLite database file."""
527528 engine = create_engine (f"sqlite:///{ Path (db_path )} " )
528529 try :
529530 create_or_replace_views (engine )
530531 finally :
531532 engine .dispose ()
533+
534+
532535if __name__ == "__main__" :
533536 engine = create_database ()
Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ def test_jct_tax_expenditure_targets_have_distinct_reform_ids(built_db):
166166
167167 assert rows == expected
168168
169+
169170def test_state_income_tax_targets (built_db ):
170171 """State income tax targets should cover all income-tax states."""
171172 conn = sqlite3 .connect (str (built_db ))
You can’t perform that action at this time.
0 commit comments