Skip to content

Commit b01c041

Browse files
committed
fix: Module-level Path import in symbol-table cache tests (ruff F821/F401)
Signed-off-by: David Leong <116610336+leongdl@users.noreply.github.com>
1 parent 1deda17 commit b01c041

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎test/openjd/model_v0/test_symbol_table_cache.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
``expr_host_rules``) invalidates the cache.
1111
"""
1212

13+
from pathlib import Path
14+
1315
import pytest
1416

1517
from openjd.model import SymbolTable
@@ -158,12 +160,11 @@ def test_profile_cached_and_invalidated_by_host_rules(self) -> None:
158160

159161
class TestTypedResolutionSingleEvaluation:
160162
def test_range_expression_evaluated_once_per_definition(
161-
self, monkeypatch: pytest.MonkeyPatch, tmp_path: "Path"
163+
self, monkeypatch: pytest.MonkeyPatch, tmp_path: Path
162164
) -> None:
163165
"""RFC 0006 typed whole-field range resolution: the expression is
164166
evaluated exactly once per task-parameter definition — the create_as
165167
target-model decision and the field value share the result."""
166-
from pathlib import Path
167168

168169
from openjd.model import create_job, decode_job_template, preprocess_job_parameters
169170
from openjd.model._internal import _create_job as internal_create_job

0 commit comments

Comments
 (0)