Skip to content

Commit

Permalink
Merge pull request #95 from Kodiologist/update-conftest
Browse files Browse the repository at this point in the history
Clean up `conftest.py`
  • Loading branch information
Kodiologist authored Apr 24, 2024
2 parents 425346d + bb9fe3d commit 2fb304a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from pathlib import Path

import hy
# For the side-effect of allowing import of Hy programs.

import pytest

def pytest_collect_file(parent, path):
if path.basename.startswith('test_') and path.ext == ".hy":
return pytest.Module.from_parent(parent, path=Path(path))
def pytest_collect_file(file_path, parent):
if file_path.name.startswith('test_') and file_path.suffix == '.hy':
return pytest.Module.from_parent(parent, path = file_path)

0 comments on commit 2fb304a

Please sign in to comment.