Skip to content

Commit

Permalink
Exclude text from Matplotlib UI image comparison tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthomas23 committed Jan 23, 2024
1 parent 4537415 commit f99708b
Show file tree
Hide file tree
Showing 22 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:

- name: Launch JupyterLab
if: matrix.os == 'ubuntu'
run: jlpm run start:detached
run: jlpm start:detached
working-directory: ui-tests

- name: Wait for JupyterLab
Expand All @@ -121,7 +121,7 @@ jobs:

- name: Run UI Tests
if: matrix.os == 'ubuntu'
run: jlpm run test
run: jlpm test
working-directory: ui-tests

- name: Upload UI Test artifacts
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion ui-tests/tests/notebooks/ipympl.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
"import numpy as np\n",
"\n",
"fig = plt.figure()\n",
"plt.plot(np.sin(np.linspace(0, 20, 100)));"
"plt.plot(np.sin(np.linspace(0, 20, 100)))\n",
"\n",
"# Remove text to avoid tiny differences in rendered output.\n",
"from matplotlib.testing.decorators import remove_ticks_and_titles\n",
"remove_ticks_and_titles(fig)"
]
},
{
Expand Down
6 changes: 5 additions & 1 deletion ui-tests/tests/notebooks/ipympl_update.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
"import numpy as np\n",
"\n",
"fig = plt.figure()\n",
"plt.plot(np.sin(np.linspace(0, 20, 100)));"
"plt.plot(np.sin(np.linspace(0, 20, 100)))\n",
"\n",
"# Remove text to avoid tiny differences in rendered output.\n",
"from matplotlib.testing.decorators import remove_ticks_and_titles\n",
"remove_ticks_and_titles(fig)"
]
},
{
Expand Down

0 comments on commit f99708b

Please sign in to comment.