1010 ChangelogType ,
1111 DeprecatedEndpoint ,
1212 NewEndpoint ,
13- RemovedEndpoint ,
13+ RetiredEndpoint ,
1414 create_route_config ,
1515 create_route_description ,
1616 validate_changelog ,
@@ -28,7 +28,7 @@ def current_api_version(mocker: MockerFixture) -> str:
2828def test_changelog_entry_types ():
2929 assert ChangelogType .NEW .value < ChangelogType .CHANGED .value
3030 assert ChangelogType .CHANGED .value < ChangelogType .DEPRECATED .value
31- assert ChangelogType .DEPRECATED .value < ChangelogType .REMOVED .value
31+ assert ChangelogType .DEPRECATED .value < ChangelogType .RETIRED .value
3232
3333
3434def test_changelog_entry_classes ():
@@ -59,11 +59,11 @@ def test_changelog_entry_classes():
5959 assert "Deprecated" in deprecated_no_version .to_string ()
6060 assert "in *version" not in deprecated_no_version .to_string ()
6161
62- # Test RemovedEndpoint
63- removed_entry = RemovedEndpoint ("0.9.0" , "Use the new endpoint instead" )
64- assert removed_entry .entry_type == ChangelogType .REMOVED
62+ # Test RetiredEndpoint
63+ removed_entry = RetiredEndpoint ("0.9.0" , "Use the new endpoint instead" )
64+ assert removed_entry .entry_type == ChangelogType .RETIRED
6565 assert removed_entry .get_version () == Version ("0.9.0" )
66- assert "Removed in *version 0.9.0*" in removed_entry .to_string ()
66+ assert "Retired in *version 0.9.0*" in removed_entry .to_string ()
6767 assert "Use the new endpoint instead" in removed_entry .to_string ()
6868
6969
@@ -181,7 +181,7 @@ def test_create_route_config_with_removal_notice(current_api_version: str) -> No
181181 changelog = [
182182 NewEndpoint ("0.5.0" ),
183183 DeprecatedEndpoint (alternative_route ),
184- RemovedEndpoint ("0.9.0" , removal_message ),
184+ RetiredEndpoint ("0.9.0" , removal_message ),
185185 ]
186186
187187 config = create_route_config (
@@ -232,7 +232,7 @@ def test_create_route_config_with_mixed_changelog(current_api_version: str) -> N
232232 ChangedEndpoint ("0.6.0" , "Added authentication" ),
233233 ChangedEndpoint ("0.6.2" , "Fixed a bug" ),
234234 DeprecatedEndpoint (alternative_route ),
235- RemovedEndpoint ("0.9.0" , "Use the new endpoint instead" ),
235+ RetiredEndpoint ("0.9.0" , "Use the new endpoint instead" ),
236236 ]
237237
238238 config = create_route_config (
0 commit comments