refactor: update project code

This commit is contained in:
2026-07-31 15:52:16 +03:00
parent cc811d2174
commit 9a9338cfdc
16 changed files with 90 additions and 60 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
# pylint:disable=redefined-outer-name,protected-access
import shutil
from pathlib import Path
from typing import Optional
import pytest
@@ -30,7 +29,7 @@ def entry(entry_detector: EntryDetector, entry_path: Path, tmp_path: Path):
@pytest.mark.parametrize("entry_path", [Path(__file__).parent / "python"])
def test_python_entry(entry: Optional[Entry], entry_detector: EntryDetector):
def test_python_entry(entry: Entry | None, entry_detector: EntryDetector):
assert entry is not None
assert {"setup", "build"} == entry._tasks.keys()
entry.run_task("setup")
@@ -40,7 +39,7 @@ def test_python_entry(entry: Optional[Entry], entry_detector: EntryDetector):
@pytest.mark.parametrize("entry_path", [Path(__file__).parent / "nodejs"])
def test_nodejs_entry(entry: Optional[Entry], entry_detector: EntryDetector):
def test_nodejs_entry(entry: Entry | None, entry_detector: EntryDetector):
assert entry is not None
assert {"setup", "build"} == entry._tasks.keys()
entry.run_task("setup")