Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd0e0906

Browse files
committed
fixing the test script - using pytest.main
1 parent3633d35 commitd0e0906

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

‎test_notebooks.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
importos
21
importsys
3-
importtime
42
fromglobimportglob
3+
importpytest
54

65
deftest_version():
76
importnipype
@@ -90,7 +89,6 @@ def reduce_notebook_load(path):
9089
print('Reducing: %s'%n)
9190
notebooks.append(reduce_notebook_load(n))
9291

93-
fortestinnotebooks:
94-
pytest_cmd='pytest --nbval-lax --nbval-cell-timeout 7200 -v -s %s'%test
95-
print(pytest_cmd)
96-
os.system(pytest_cmd)
92+
# testing all tests from the notebooks list
93+
pytest.main(["--nbval-lax","--nbval-cell-timeout","7200","-vs"]+notebooks)
94+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp