File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 66from types import ModuleType
77from typing import Dict , List
88
9- import github
109import pytest
1110
11+ try :
12+ import github
13+ except ImportError :
14+ pass
15+
1216PROJECT_EULER_DIR_PATH = pathlib .Path .cwd ().joinpath ("project_euler" )
1317PROJECT_EULER_ANSWERS_PATH = pathlib .Path .cwd ().joinpath (
1418 "scripts" , "project_euler_answers.json"
@@ -82,7 +86,7 @@ def collect_solution_file_paths() -> List[pathlib.Path]:
8286 collect_solution_file_paths (),
8387 ids = lambda path : f"{ path .parent .name } /{ path .name } " ,
8488)
85- def test_project_euler (solution_path : pathlib .Path ):
89+ def test_project_euler (solution_path : pathlib .Path ) -> None :
8690 """Testing for all Project Euler solutions"""
8791 # problem_[extract this part] and pad it with zeroes for width 3
8892 problem_number : str = solution_path .parent .name [8 :].zfill (3 )
You can’t perform that action at this time.
0 commit comments