Skip to content

Commit

Permalink
fix widnows test
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov721 committed Dec 15, 2024
1 parent 0e305a8 commit 4d187c4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_data/test_annotations.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
from pathlib import Path
from typing import Any, Dict, List

Expand Down Expand Up @@ -428,16 +429,14 @@ def test_segmentation_annotation(subtests: SubTests, tempdir: Path):
)


def test_array_annotation(
subtests: SubTests, tempdir: Path, platform_name: str
):
def test_array_annotation(subtests: SubTests, tempdir: Path):
arr = np.random.rand(100, 100)
arr_path = tempdir / "array.npy"
np.save(arr_path, arr)

with subtests.test("simple"):
annotation = ArrayAnnotation(path=arr_path)
assert annotation.model_dump_json() == f'{{"path":"{arr_path}"}}'
assert annotation.model_dump_json() == json.dumps({"path": arr_path})

with subtests.test("numpy"):
annotation = ArrayAnnotation(path=arr_path)
Expand Down

0 comments on commit 4d187c4

Please sign in to comment.