@@ -31,7 +31,11 @@ def test_remove_db_data(
3131 @patch ("sqlsynthgen.remove.get_settings" )
3232 def test_remove_db_data_raises (self , mock_get : MagicMock ) -> None :
3333 """Check that remove_db_data raises if dst DSN is missing."""
34- mock_get .return_value = Settings (dst_dsn = None , _env_file = None )
34+ mock_get .return_value = Settings (
35+ dst_dsn = None ,
36+ # The mypy ignore can be removed once we upgrade to pydantic 2.
37+ _env_file = None , # type: ignore[call-arg]
38+ )
3539 with self .assertRaises (AssertionError ) as context_manager :
3640 remove_db_data (example_orm , remove_ssg )
3741 self .assertEqual (
@@ -56,7 +60,11 @@ def test_remove_db_vocab(
5660 @patch ("sqlsynthgen.remove.get_settings" )
5761 def test_remove_db_vocab_raises (self , mock_get : MagicMock ) -> None :
5862 """Check that remove_db_vocab raises if dst DSN is missing."""
59- mock_get .return_value = Settings (dst_dsn = None , _env_file = None )
63+ mock_get .return_value = Settings (
64+ dst_dsn = None ,
65+ # The mypy ignore can be removed once we upgrade to pydantic 2.
66+ _env_file = None , # type: ignore[call-arg]
67+ )
6068 with self .assertRaises (AssertionError ) as context_manager :
6169 remove_db_vocab (example_orm , remove_ssg )
6270 self .assertEqual (
@@ -75,7 +83,11 @@ def test_remove_tables(self, mock_engine: MagicMock, _: MagicMock) -> None:
7583 @patch ("sqlsynthgen.remove.get_settings" )
7684 def test_remove_db_tables_raises (self , mock_get : MagicMock ) -> None :
7785 """Check that remove_db_tables raises if dst DSN is missing."""
78- mock_get .return_value = Settings (dst_dsn = None , _env_file = None )
86+ mock_get .return_value = Settings (
87+ dst_dsn = None ,
88+ # The mypy ignore can be removed once we upgrade to pydantic 2.
89+ _env_file = None , # type: ignore[call-arg]
90+ )
7991 with self .assertRaises (AssertionError ) as context_manager :
8092 remove_db_tables (example_orm )
8193 self .assertEqual (
0 commit comments