Skip to content

Commit

Permalink
Update data_tests.py
Browse files Browse the repository at this point in the history
AAriam committed Nov 9, 2024
1 parent 414c3b2 commit 0055487
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
from your_new_python_project.exception.data import DataFileNotFoundError


def test_file():
def test_file() -> None:
"""Test the integrity of the `__test_file__` marker file.
The marker file is used to indicate that the package data files are present.
@@ -19,7 +19,7 @@ def test_file():
assert filepath.read_text().rstrip() == marker


def test_no_file():
def test_no_file() -> None:
"""Test that an error is raised when the input data file is missing."""
with pytest.raises(DataFileNotFoundError):
pkg.data.filepath("path/to/nonexistent/file")

0 comments on commit 0055487

Please sign in to comment.