Skip to content

Update ipytest imports #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
env: TOXENV=py37
- python: 3.8
env: TOXENV=py38
- python: 3.9
env: TOXENV=py39

install: pip install jupyter nbval pytest tox
script: tox
5 changes: 3 additions & 2 deletions notebooks/beginner/exercises/testing1_exercise.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"!{sys.executable} -m pip install pytest\n",
"!{sys.executable} -m pip install ipytest\n",
"\n",
"import ipytest.magics\n",
"import pytest\n",
"import ipytest\n",
"ipytest.autoconfig()\n",
"\n",
"__file__ = 'testing1_exercise.ipynb'"
]
Expand Down Expand Up @@ -72,7 +73,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.4"
"version": "3.9.0"
}
},
"nbformat": 4,
Expand Down
5 changes: 3 additions & 2 deletions notebooks/beginner/exercises/testing2_exercise.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"!{sys.executable} -m pip install pytest\n",
"!{sys.executable} -m pip install ipytest\n",
"\n",
"import ipytest.magics\n",
"import pytest\n",
"import ipytest\n",
"ipytest.autoconfig()\n",
"\n",
"__file__ = 'testing2_exercise.ipynb'"
]
Expand Down Expand Up @@ -192,7 +193,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.4"
"version": "3.9.0"
}
},
"nbformat": 4,
Expand Down
Loading