Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Commit 7b19bc4

Browse files
authored
Merge pull request #772 from mtreinish/fix-tests
Make tutorial tests run all notebooks by default and configurable
2 parents 1b0ae6c + ced0ecf commit 7b19bc4

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ qiskit/basics/Qconfig_IBMQ_experience_staging.py
2525

2626
qiskit/basics/Qconfig_IBMQ_network-dev.py
2727
.DS_Store
28+
29+
.stestr/

.stestr.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[DEFAULT]
2+
test_path=./utils/test

utils/test/test_tutorials.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252
# List of manual exclusion (for example, ["reference/foo/problematic.ipynb"]).
5353
EXCLUDED_NOTEBOOKS = []
5454
# Timeout (in seconds) for a single notebook.
55-
TIMEOUT = 6000
55+
TIMEOUT = os.getenv('TIMEOUT', 6000)
5656
# Jupyter kernel to execute the notebook in.
57-
JUPYTER_KERNEL = 'python3'
57+
JUPYTER_KERNEL = os.getenv('JUPYTER_KERNEL', 'python3')
5858
# Glob expression for discovering the notebooks.
59-
NOTEBOOK_PATH = 'reference/**/*.ipynb'
59+
NOTEBOOK_PATH = os.getenv('NOTEBOOK_PATH', 'qiskit/**/*.ipynb')
6060

6161

6262
# Retrieve the notebooks recursively.

0 commit comments

Comments
 (0)