Skip to content

Commit

Permalink
tests: fix dependencies of sudachipy test
Browse files Browse the repository at this point in the history
`sudachipy` test depends on availability of dictionary packages
(`sudachidict_small`, `sudachidict_core`, and `sudachidict_full`),
so skip the test if they are not available.

In practice, this means that we likely will not be running this
test on the pyup-bot PRs, unless both `sudachipy` and dictionary
packages get updated at the same time.
  • Loading branch information
rokm committed Dec 18, 2023
1 parent f9c592d commit f8aaa39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/_pyinstaller_hooks_contrib/tests/test_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,9 @@ def test_pymorphy3(pyi_builder):


@importorskip('sudachipy')
@importorskip('sudachidict_small')
@importorskip('sudachidict_core')
@importorskip('sudachidict_full')
def test_sudachipy(pyi_builder):
pyi_builder.test_source("""
from sudachipy import Dictionary
Expand Down

0 comments on commit f8aaa39

Please sign in to comment.