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 6
6
from types import ModuleType
7
7
from typing import Dict , List
8
8
9
- import github
10
9
import pytest
11
10
11
+ try :
12
+ import github
13
+ except ImportError :
14
+ pass
15
+
12
16
PROJECT_EULER_DIR_PATH = pathlib .Path .cwd ().joinpath ("project_euler" )
13
17
PROJECT_EULER_ANSWERS_PATH = pathlib .Path .cwd ().joinpath (
14
18
"scripts" , "project_euler_answers.json"
@@ -82,7 +86,7 @@ def collect_solution_file_paths() -> List[pathlib.Path]:
82
86
collect_solution_file_paths (),
83
87
ids = lambda path : f"{ path .parent .name } /{ path .name } " ,
84
88
)
85
- def test_project_euler (solution_path : pathlib .Path ):
89
+ def test_project_euler (solution_path : pathlib .Path ) -> None :
86
90
"""Testing for all Project Euler solutions"""
87
91
# problem_[extract this part] and pad it with zeroes for width 3
88
92
problem_number : str = solution_path .parent .name [8 :].zfill (3 )
You can’t perform that action at this time.
0 commit comments