Skip to content

Commit

Permalink
Skip test based on content of scico/data/examples (#99)
Browse files Browse the repository at this point in the history
* Skip test based on content of scico/data/examples rather than content of data directory

* Fixed test_data skip if for pytest.

Co-authored-by: Fernando Davis <[email protected]>
  • Loading branch information
bwohlberg and FernandoDavis authored Nov 16, 2021
1 parent 4684909 commit 5e4ea28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scico/test/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
"\nAnd after cloning run:\n\tgit submodule init && git submodule update.\n"
)

pytestmark = pytest.mark.skipif(
len(os.listdir(os.path.abspath("./data"))) == 0, reason=skipif_reason
)
examples = os.path.join(os.path.dirname(data.__file__), "examples")
pytestmark = pytest.mark.skipif(not os.path.isdir(examples), reason=skipif_reason)


class TestSet:
Expand Down

0 comments on commit 5e4ea28

Please sign in to comment.