@@ -70,23 +70,23 @@ def pypyinfo(version_database: VersionDatabase) -> PyPyVersionInfo:
7070 ("7.3.7" , ["3.7.12" , "3.8.12" ]),
7171 ],
7272)
73- def test_supports_cpython (
73+ def test_supported_cpython (
7474 pypyinfo : PyPyVersionInfo , version : str , cpythons : List [str ]
7575) -> None :
76- assert pypyinfo .supports_cpython (version ) == cpythons
76+ assert pypyinfo .supported_cpython (version ) == cpythons
7777
7878
7979@pytest .mark .parametrize ("v" , INVALID_VERSIONS + ["7.3" , "7" ])
80- def test_supports_cpython_invalid (pypyinfo : PyPyVersionInfo , v : str ) -> None :
80+ def test_supported_cpython_invalid (pypyinfo : PyPyVersionInfo , v : str ) -> None :
8181 with pytest .raises (ValueError ) as excinfo :
82- pypyinfo .supports_cpython (v )
82+ pypyinfo .supported_cpython (v )
8383 assert str (excinfo .value ) == f"Invalid micro version: { v !r} "
8484
8585
8686@pytest .mark .parametrize ("v" , ["0.8.0" , "1.5.0" , "3.0.0" , "7.3.9" , "9.0.0" ])
87- def test_supports_cpython_unknown (pypyinfo : PyPyVersionInfo , v : str ) -> None :
87+ def test_supported_cpython_unknown (pypyinfo : PyPyVersionInfo , v : str ) -> None :
8888 with pytest .raises (UnknownVersionError ) as excinfo :
89- pypyinfo .supports_cpython (v )
89+ pypyinfo .supported_cpython (v )
9090 assert str (excinfo .value ) == f"Unknown version: { v !r} "
9191 assert excinfo .value .version == v
9292
@@ -99,12 +99,12 @@ def test_supports_cpython_unknown(pypyinfo: PyPyVersionInfo, v: str) -> None:
9999 ],
100100)
101101@pytest .mark .parametrize ("released" , [False , True ])
102- def test_supports_cpython_series (
102+ def test_supported_cpython_series (
103103 pypyinfo : PyPyVersionInfo , version : str , released : bool , series : List [str ]
104104) -> None :
105- assert pypyinfo .supports_cpython_series (version , released = released ) == series
105+ assert pypyinfo .supported_cpython_series (version , released = released ) == series
106106 if released is False :
107- assert pypyinfo .supports_cpython_series (version ) == series
107+ assert pypyinfo .supported_cpython_series (version ) == series
108108
109109
110110@pytest .mark .parametrize (
@@ -118,24 +118,24 @@ def test_supports_cpython_series(
118118 ("8.0.0" , True , []),
119119 ],
120120)
121- def test_supports_cpython_series_released (
121+ def test_supported_cpython_series_released (
122122 pypyinfo : PyPyVersionInfo , version : str , released : bool , series : List [str ]
123123) -> None :
124- assert pypyinfo .supports_cpython_series (version , released = released ) == series
124+ assert pypyinfo .supported_cpython_series (version , released = released ) == series
125125 if released is False :
126- assert pypyinfo .supports_cpython_series (version ) == series
126+ assert pypyinfo .supported_cpython_series (version ) == series
127127
128128
129129@pytest .mark .parametrize ("v" , INVALID_VERSIONS )
130- def test_supports_cpython_series_invalid (pypyinfo : PyPyVersionInfo , v : str ) -> None :
130+ def test_supported_cpython_series_invalid (pypyinfo : PyPyVersionInfo , v : str ) -> None :
131131 with pytest .raises (ValueError ) as excinfo :
132- pypyinfo .supports_cpython_series (v )
132+ pypyinfo .supported_cpython_series (v )
133133 assert str (excinfo .value ) == f"Invalid version string: { v !r} "
134134
135135
136136@pytest .mark .parametrize ("v" , ["0.8" , "1.5" , "3" , "7.3.9" , "9.0.0" ])
137- def test_supports_cpython_series_unknown (pypyinfo : PyPyVersionInfo , v : str ) -> None :
137+ def test_supported_cpython_series_unknown (pypyinfo : PyPyVersionInfo , v : str ) -> None :
138138 with pytest .raises (UnknownVersionError ) as excinfo :
139- pypyinfo .supports_cpython_series (v )
139+ pypyinfo .supported_cpython_series (v )
140140 assert str (excinfo .value ) == f"Unknown version: { v !r} "
141141 assert excinfo .value .version == v
0 commit comments