File tree 2 files changed +3
-3
lines changed
tests/pep_processor/transform 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ def _process_pretty_url(url: str) -> tuple[str, str]:
205
205
except KeyError as error :
206
206
raise ValueError (
207
207
f"{ url } not a link to a recognized domain to prettify" ) from error
208
- item_name = item_name .title ().replace ("Sig" , "SIG" )
208
+ item_name = item_name .title ().replace ("Sig" , "SIG" ). replace ( "Pep" , "PEP" )
209
209
return item_name , item_type
210
210
211
211
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def test_generate_list_url(test_input, expected):
47
47
),
48
48
(
49
49
"https://discuss.python.org/c/peps/" ,
50
- ("Peps Discourse" , "category" ),
50
+ ("PEPs Discourse" , "category" ),
51
51
),
52
52
],
53
53
)
@@ -104,7 +104,7 @@ def test_process_pretty_url_invalid(test_input, expected):
104
104
),
105
105
(
106
106
"https://discuss.python.org/c/peps/" ,
107
- "Peps Discourse category" ,
107
+ "PEPs Discourse category" ,
108
108
),
109
109
],
110
110
)
You can’t perform that action at this time.
0 commit comments