Skip to content

Commit

Permalink
fix path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Treesarj committed Mar 13, 2024
1 parent 6d4c557 commit a27fbcd
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions tests/strategies/test_parse_json.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
from pathlib import Path
from typing import TYPE_CHECKING

import pytest

if TYPE_CHECKING:
from oteapi_dlite.strategies.parse_json import DLiteJsonStrategy
from pathlib import Path

from oteapi.interfaces import IParseStrategy

@pytest.fixture
def static_files() -> Path:
"""Fixture for static files directory."""
return Path(__file__).parent / "static_files"

def test_parse_json(static_files: "Path") -> None:
"""Test json parse strategy."""
import dlite

from oteapi_dlite.strategies.parse_json import DLiteJsonStrategy, DLiteJsonStrategyConfig
from oteapi_dlite.strategies.parse_json import (
DLiteJsonStrategy,
DLiteJsonStrategyConfig,
)

sample_file = static_files / "test_parse_json.json"

Expand Down

0 comments on commit a27fbcd

Please sign in to comment.