Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
aloctavodia committed Jan 8, 2025
1 parent 97c6f92 commit f3b5441
Showing 1 changed file with 25 additions and 36 deletions.
61 changes: 25 additions & 36 deletions preliz/tests/check_inside_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "81849101",
"metadata": {},
"outputs": [],
Expand All @@ -17,10 +17,19 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "1630c205",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32m.\u001b[0m\u001b[32m [100%]\u001b[0m\n",
"\u001b[32m\u001b[32m\u001b[1m1 passed\u001b[0m\u001b[32m in 0.01s\u001b[0m\u001b[0m\n"
]
}
],
"source": [
"%%ipytest\n",
"\n",
Expand All @@ -32,10 +41,19 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"id": "843a0c94",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32m.\u001b[0m\u001b[32m [100%]\u001b[0m\n",
"\u001b[32m\u001b[32m\u001b[1m1 passed\u001b[0m\u001b[32m in 0.01s\u001b[0m\u001b[0m\n"
]
}
],
"source": [
"%%ipytest\n",
"\n",
Expand All @@ -44,35 +62,11 @@
" captured = capsys.readouterr()\n",
" assert \"widget\" in captured.out\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8b3e8ca9",
"metadata": {},
"outputs": [],
"source": [
"%matplotlib widget"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a57cc174",
"metadata": {},
"outputs": [],
"source": [
"%%ipytest\n",
"def test_widget_ok(capsys):\n",
" check_inside_notebook(need_widget=True)\n",
" captured = capsys.readouterr()\n",
" assert \"\" == captured.out"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "test",
"display_name": "preliz",
"language": "python",
"name": "python3"
},
Expand All @@ -86,12 +80,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.0 (default, Nov 15 2020, 14:28:56) \n[GCC 7.3.0]"
},
"vscode": {
"interpreter": {
"hash": "5b344a7d0839c309585d2ae27435157813d3b4ade1fa431f12bd272ea9135317"
}
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down

0 comments on commit f3b5441

Please sign in to comment.