@@ -68,11 +68,11 @@ def test_project_license(cookies: Any, project_license: str) -> None:
6868 if project_license in ("MIT" , "BSD-3-Clause" ):
6969 # Compare copyright line separately
7070 if project_license == "MIT" :
71- expected_copyright = "Copyright (c) {0 } Ness" .format (
71+ expected_copyright = "Copyright (c) {} Ness" .format (
7272 datetime .date .today ().year
7373 )
7474 elif project_license == "BSD-3-Clause" :
75- expected_copyright = "Copyright (c) {0 }, Ness" .format (
75+ expected_copyright = "Copyright (c) {}, Ness" .format (
7676 datetime .date .today ().year
7777 )
7878 assert license_data .splitlines ()[0 ] == expected_copyright
@@ -171,11 +171,11 @@ def test_rendered_readme(
171171 ),
172172 )
173173
174- with open (os .path .join (result .project_path , "README.md" ), "r" ) as f :
174+ with open (os .path .join (result .project_path , "README.md" )) as f :
175175 readme = f .read ()
176176 if opt_update_expected_outputs :
177177 with open (expected_content_file , "w" ) as f :
178178 f .write (readme )
179179
180- with open (expected_content_file , "r" ) as f :
180+ with open (expected_content_file ) as f :
181181 assert readme == f .read ()
0 commit comments