Skip to content

Commit

Permalink
fix: Add missing test file (#266)
Browse files Browse the repository at this point in the history
This file should have been added with #258
  • Loading branch information
mark-koch authored Jun 25, 2024
1 parent 041c621 commit 75231fe
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/error/test_array_errors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import pathlib
import pytest

from tests.error.util import run_error_test

path = pathlib.Path(__file__).parent.resolve() / "array_errors"
files = [
x
for x in path.iterdir()
if x.is_file()
if x.suffix == ".py" and x.name != "__init__.py"
]

# Turn paths into strings, otherwise pytest doesn't display the names
files = [str(f) for f in files]


@pytest.mark.parametrize("file", files)
def test_array_errors(file, capsys):
run_error_test(file, capsys)

0 comments on commit 75231fe

Please sign in to comment.