Skip to content

Commit c6ecb62

Browse files
committed
update test
1 parent 5d89e38 commit c6ecb62

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

tests/test_notebook_demos_extra.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
from nbconvert.preprocessors import CellExecutionError
1212

1313
from IPython.display import display
14+
import re
1415

1516

16-
class SkipCellsPreprocessor(ExecutePreprocessor):
17+
class CellExecuter(ExecutePreprocessor):
1718
"""特定のキーワードを含むセルをスキップするプリプロセッサ"""
1819

1920
def __init__(self, exception_words=None, **kwargs):
@@ -43,7 +44,7 @@ def test_demo_notebook_02en():
4344
nb = nbformat.read(f, as_version=4)
4445

4546
# カスタムプリプロセッサを使用
46-
ep = SkipCellsPreprocessor(
47+
ep = CellExecuter(
4748
exception_words=exception_words,
4849
timeout=1800,
4950
kernel_name='python3'
@@ -72,7 +73,7 @@ def test_demo_notebook_03en_pytorch():
7273
nb = nbformat.read(f, as_version=4)
7374

7475
# カスタムプリプロセッサを使用
75-
ep = SkipCellsPreprocessor(
76+
ep = CellExecuter(
7677
exception_words=exception_words,
7778
timeout=1800,
7879
kernel_name='python3'
@@ -102,7 +103,7 @@ def test_demo_notebook_04en_OpenStreetMap():
102103
nb = nbformat.read(f, as_version=4)
103104

104105
# カスタムプリプロセッサを使用
105-
ep = SkipCellsPreprocessor(
106+
ep = CellExecuter(
106107
exception_words=exception_words,
107108
timeout=1800,
108109
kernel_name='python3'
@@ -131,7 +132,7 @@ def test_demo_notebook_06en_taxi_or_shared_mobility():
131132
nb = nbformat.read(f, as_version=4)
132133

133134
# カスタムプリプロセッサを使用
134-
ep = SkipCellsPreprocessor(
135+
ep = CellExecuter(
135136
exception_words=exception_words,
136137
timeout=1800,
137138
kernel_name='python3'
@@ -162,7 +163,7 @@ def test_demo_notebook_08en_chicago():
162163
nb = nbformat.read(f, as_version=4)
163164

164165
# カスタムプリプロセッサを使用
165-
ep = SkipCellsPreprocessor(
166+
ep = CellExecuter(
166167
exception_words=exception_words,
167168
timeout=1800,
168169
kernel_name='python3'
@@ -192,9 +193,9 @@ def test_demo_notebook_09en_dynamic_traffic_assignment():
192193
nb = nbformat.read(f, as_version=4)
193194

194195
# カスタムプリプロセッサを使用
195-
ep = SkipCellsPreprocessor(
196+
ep = CellExecuter(
196197
exception_words=exception_words,
197-
timeout=1800,
198+
timeout=7200,
198199
kernel_name='python3'
199200
)
200201

@@ -223,7 +224,7 @@ def test_demo_notebook_10en_traffic_signal_tutorial():
223224
nb = nbformat.read(f, as_version=4)
224225

225226
# カスタムプリプロセッサを使用
226-
ep = SkipCellsPreprocessor(
227+
ep = CellExecuter(
227228
exception_words=exception_words,
228229
timeout=1800,
229230
kernel_name='python3'

0 commit comments

Comments
 (0)