Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alistair/resource fixes #59

Merged
merged 5 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading