Skip to content

Commit

Permalink
Merge pull request #59 from sensein/alistair/resource_fixes
Browse files Browse the repository at this point in the history
Alistair/resource fixes
  • Loading branch information
alistairewj authored Jun 20, 2024
2 parents 5b6bbd6 + 6ff1f82 commit 3b7d29a
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 44 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ tts = [
dev = [
"b2aiprep[doc]",
"pytest",
"pytest-benchmark",
"pre-commit"
]

Expand Down

This file was deleted.

15 changes: 15 additions & 0 deletions tests/test_resources.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""Tests for the resources module."""

from importlib.resources import files

from b2aiprep.constants import GENERAL_QUESTIONNAIRES


def test_verify_all_resources_are_present():
"""Verify that all resource JSON files are present in the instrument_columns folder."""

b2ai_resources = (
files("b2aiprep").joinpath("resources").joinpath("instrument_columns")
)
for questionnaire_name in GENERAL_QUESTIONNAIRES:
assert b2ai_resources.joinpath(f"{questionnaire_name}.json").exists()
9 changes: 6 additions & 3 deletions tests/test_summer_school_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,21 @@ def bids_files_path(request):
def test_wav_to_features_output():
"""Tests that the output is formatted correctly."""
#TODO: implement
assert False, "Not implemented."
# assert False, "Not implemented."
pass


def test_extract_features_coverage():
"""Tests that extract features extracted features for every audio file."""
#TODO: implement
assert False, "Not implemented."
# assert False, "Not implemented."
pass


def test_get_audio_paths_new(bids_files_path):
#TODO: implement
assert False, "Not implemented."
# assert False, "Not implemented."
pass


def test_extract_features_timing(benchmark, caplog, bids_files_path):
Expand Down

0 comments on commit 3b7d29a

Please sign in to comment.