mirror of
https://github.com/macaodha/batdetect2.git
synced 2025-06-29 14:41:58 +02:00
Fix batdetect2 test
This commit is contained in:
parent
e38c446f59
commit
c276230bff
@ -12,14 +12,13 @@ ROOT_DIR = Path(__file__).parent.parent.parent
|
|||||||
def test_load_example_annotation_project():
|
def test_load_example_annotation_project():
|
||||||
path = ROOT_DIR / "example_data" / "anns"
|
path = ROOT_DIR / "example_data" / "anns"
|
||||||
audio_dir = ROOT_DIR / "example_data" / "audio"
|
audio_dir = ROOT_DIR / "example_data" / "audio"
|
||||||
project = load_annotated_dataset(
|
annotation_set = load_annotated_dataset(
|
||||||
BatDetect2FilesAnnotations(
|
BatDetect2FilesAnnotations(
|
||||||
name="test",
|
name="test",
|
||||||
audio_dir=audio_dir,
|
audio_dir=audio_dir,
|
||||||
annotations_dir=path,
|
annotations_dir=path,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
assert isinstance(project, data.AnnotationProject)
|
assert isinstance(annotation_set, data.AnnotationSet)
|
||||||
assert project.name == "test"
|
assert annotation_set.name == "test"
|
||||||
assert len(project.clip_annotations) == 3
|
assert len(annotation_set.clip_annotations) == 3
|
||||||
assert len(project.tasks) == 3
|
|
||||||
|
Loading…
Reference in New Issue
Block a user