1919
2020
2121class TestFilterContractMetadata :
22- def test_filter_contract_metadata_empty_file (self ) -> None :
22+ def test_cli_contracts_filter_metadata_empty_file (self ) -> None :
2323 """
2424 Test filtering with an empty contract file.
2525 """
@@ -31,7 +31,7 @@ def test_filter_contract_metadata_empty_file(self) -> None:
3131 "verbs" : {"conjugations" : []},
3232 }
3333
34- def test_filter_contract_metadata_numbers_dict (self ) -> None :
34+ def test_cli_contracts_filter_metadata_numbers_dict (self ) -> None :
3535 """
3636 Test filtering numbers as a dictionary.
3737 """
@@ -48,7 +48,7 @@ def test_filter_contract_metadata_numbers_dict(self) -> None:
4848 assert "" not in result ["nouns" ]["numbers" ]
4949 assert "collective" in result ["nouns" ]["numbers" ]
5050
51- def test_filter_contract_metadata_numbers_list (self ) -> None :
51+ def test_cli_contracts_filter_metadata_numbers_list (self ) -> None :
5252 """
5353 Test filtering numbers as a list.
5454 """
@@ -61,7 +61,7 @@ def test_filter_contract_metadata_numbers_list(self) -> None:
6161 result = filter_contract_metadata (Path ("fake_path.json" ))
6262 assert set (result ["nouns" ]["numbers" ]) == {"singular" , "plural" , "dual" }
6363
64- def test_filter_contract_metadata_numbers_string (self ) -> None :
64+ def test_cli_contracts_filter_metadata_numbers_string (self ) -> None :
6565 """
6666 Test filtering numbers as a string.
6767 """
@@ -74,7 +74,7 @@ def test_filter_contract_metadata_numbers_string(self) -> None:
7474 result = filter_contract_metadata (Path ("fake_path.json" ))
7575 assert set (result ["nouns" ]["numbers" ]) == {"singular" , "plural" , "dual" }
7676
77- def test_filter_contract_metadata_genders (self ) -> None :
77+ def test_cli_contracts_filter_metadata_genders (self ) -> None :
7878 """
7979 Test filtering genders.
8080 """
@@ -93,7 +93,7 @@ def test_filter_contract_metadata_genders(self) -> None:
9393 assert "NOT_INCLUDED" not in result ["nouns" ]["genders" ]
9494 assert "" not in result ["nouns" ]["genders" ]
9595
96- def test_filter_contract_metadata_conjugations_list (self ) -> None :
96+ def test_cli_contracts_filter_metadata_conjugations_list (self ) -> None :
9797 """
9898 Test filtering conjugations as a list.
9999 """
@@ -107,7 +107,7 @@ def test_filter_contract_metadata_conjugations_list(self) -> None:
107107 assert set (result ["verbs" ]["conjugations" ]) == {"run" , "runs" , "ran" }
108108 assert "[running]" not in result ["verbs" ]["conjugations" ]
109109
110- def test_filter_contract_metadata_error_handling (self ) -> None :
110+ def test_cli_contracts_filter_metadata_error_handling (self ) -> None :
111111 """
112112 Test error handling for invalid YAML.
113113 """
@@ -119,7 +119,7 @@ def test_filter_contract_metadata_error_handling(self) -> None:
119119
120120
121121class TestFilterExportedData :
122- def test_filter_exported_data_nouns (self ) -> None :
122+ def test_cli_contracts_filter_exported_data_nouns (self ) -> None :
123123 """
124124 Test filtering exported noun data.
125125 """
@@ -169,7 +169,7 @@ def test_filter_exported_data_nouns(self) -> None:
169169 assert result ["L2" ]["singular" ] == "dog"
170170 assert "irrelevant" not in result ["L2" ]
171171
172- def test_filter_exported_data_verbs (self ) -> None :
172+ def test_cli_contracts_filter_exported_data_verbs (self ) -> None :
173173 """
174174 Test filtering exported verb data.
175175 """
@@ -211,7 +211,7 @@ def test_filter_exported_data_verbs(self) -> None:
211211 # L4 should not be included as it doesn't have enough valid fields.
212212 assert "L4" not in result
213213
214- def test_filter_exported_data_unsupported_type (self ) -> None :
214+ def test_cli_contracts_filter_exported_data_unsupported_type (self ) -> None :
215215 """
216216 Test filtering with unsupported data type.
217217 """
@@ -226,7 +226,7 @@ def test_filter_exported_data_unsupported_type(self) -> None:
226226 )
227227 assert result == {}
228228
229- def test_filter_exported_data_error_handling (self ) -> None :
229+ def test_cli_contracts_filter_exported_data_error_handling (self ) -> None :
230230 """
231231 Test error handling for invalid JSON.
232232 """
@@ -253,7 +253,7 @@ class TestExportContracts:
253253 @patch ("pathlib.Path.exists" )
254254 @patch ("builtins.open" , new_callable = mock_open )
255255 @patch ("json.dump" )
256- def test_export_data_filtered_by_contracts (
256+ def test_cli_contracts_export_data_filtered (
257257 self ,
258258 mock_json_dump : MagicMock ,
259259 mock_file_open : MagicMock ,
@@ -361,7 +361,7 @@ def mock_path_glob(self: Path, pattern: str) -> list[Path]:
361361 @patch ("scribe_data.cli.contracts.filter.get_language_from_iso" )
362362 @patch ("os.listdir" )
363363 @patch ("pathlib.Path.mkdir" )
364- def test_export_data_filtered_by_contracts_no_language_match (
364+ def test_cli_contracts_export_data_filtered_no_language_match (
365365 self ,
366366 mock_mkdir : MagicMock ,
367367 mock_listdir : MagicMock ,
@@ -394,7 +394,7 @@ def test_export_data_filtered_by_contracts_no_language_match(
394394 @patch ("os.listdir" )
395395 @patch ("pathlib.Path.mkdir" )
396396 @patch ("pathlib.Path.exists" )
397- def test_export_data_filtered_by_contracts_no_input_file (
397+ def test_cli_contracts_export_data_filtered_no_input_file (
398398 self ,
399399 mock_exists : MagicMock ,
400400 mock_mkdir : MagicMock ,
@@ -428,7 +428,7 @@ def test_export_data_filtered_by_contracts_no_input_file(
428428 @patch ("scribe_data.cli.contracts.filter.get_language_from_iso" )
429429 @patch ("os.listdir" )
430430 @patch ("pathlib.Path.mkdir" )
431- def test_export_data_filtered_by_contracts_empty_metadata (
431+ def test_cli_contracts_export_data_filtered_empty_metadata (
432432 self ,
433433 mock_mkdir : MagicMock ,
434434 mock_listdir : MagicMock ,
0 commit comments