Skip to content

Commit ac0ccbc

Browse files
Fix: Update test_plugin.py type checking and CI workflow
Co-Authored-By: [email protected] <[email protected]>
1 parent b40233f commit ac0ccbc

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/python-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
else
9393
. ../../.venv/bin/activate
9494
fi
95-
uv pip install .
95+
uv pip install -e .
9696
uv pip install -r requirements.txt -r dev-requirements.txt
9797
9898
- name: pytest-selfie - pytest
@@ -137,6 +137,7 @@ jobs:
137137
else
138138
. ../../.venv/bin/activate
139139
fi
140+
uv pip install -e .
140141
uv pip install -r requirements.txt -r dev-requirements.txt
141142
142143
- name: example-pytest-selfie - pytest

python/pytest-selfie/tests/test_plugin.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
import os
2-
import pytest
3-
from _pytest.config import Config
42
from pathlib import Path
53
from typing import Any
64

7-
from pytest_selfie.plugin import PytestSnapshotSystem, SelfieSettingsAPI
5+
import pytest
6+
from _pytest.config import Config
87
from selfie_lib import Mode, TypedPath
98

9+
from pytest_selfie.plugin import PytestSnapshotSystem, SelfieSettingsAPI
10+
1011

1112
class MockConfig(Config): # type: ignore
1213
def __init__(self, tmp_path: Path):
1314
self._rootpath = tmp_path
1415

15-
def getoption(self, name: str, default: Any = None, skip: bool = False) -> Any:
16+
def getoption(self, name: str, default: Any = None, skip: bool = False) -> Any: # type: ignore[override]
1617
return default
1718

1819
@property

0 commit comments

Comments
 (0)