Skip to content

Commit 5480c44

Browse files
committed
CI updates
1 parent 62f2cb9 commit 5480c44

File tree

4 files changed

+13
-43
lines changed

4 files changed

+13
-43
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
env:
22-
# - "3.13"
22+
- "3.13"
2323
- "3.12"
24-
# - "3.11"
25-
# - "3.10"
26-
# - "3.9"
27-
# - "3.8"
28-
# - type
29-
# - dev
30-
# - pkg_meta
24+
- "3.11"
25+
- "3.10"
26+
- "3.9"
27+
- "3.8"
28+
- type
29+
- dev
30+
- pkg_meta
3131
steps:
3232
- uses: actions/checkout@v4
3333
with:
@@ -46,8 +46,8 @@ jobs:
4646
if: startsWith(matrix.env, '3.') && matrix.env != '3.13'
4747
run: uv python install --python-preference only-managed ${{ matrix.env }}
4848

49-
# - name: Setup test suite
50-
# run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }}
49+
- name: Setup test suite
50+
run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }}
5151

5252
- name: Run test suite
5353
run:

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,9 @@ max_supported_python = "3.13"
113113
[tool.pytest.ini_options]
114114
addopts = "-ra -q"
115115
testpaths = [
116+
"src",
116117
"tests",
117118
]
118-
#echo_envs = ["ENV1", "ENV2"]
119-
#echo_attributes = []
120-
#echo_versions = ["pytest"]
121119

122120
[tool.coverage]
123121
run.source = [

src/pytest_echo/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ def pytest_load_initial_conftests(
208208
for entry in _load_values(early_config):
209209
if entry.type in {"env", "envs", "echo_envs"}:
210210
early_config.option.echo_envs.append(entry.key)
211-
if entry.type in ["attr", "attribute", "echo_attribute"]:
211+
if entry.type in {"attr", "attribute", "echo_attribute"}:
212212
early_config.option.echo_attributes.append(entry.key)
213-
if entry.type in ["version", "echo_version"]:
213+
if entry.type in {"version", "echo_version"}:
214214
early_config.option.echo_versions.append(entry.key)
215215

216216

tests/test_echo.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -130,32 +130,4 @@ def test_echo_no_inspections(testdir: pytest.Testdir) -> None:
130130
def test_echo_attr_module_object_attr(testdir: pytest.Testdir) -> None:
131131
result = testdir.runpytest("--echo-attr=linecache.cache.__class__")
132132
match = " linecache.cache.__class__: <class 'dict'>"
133-
134133
result.stdout.fnmatch_lines([match])
135-
136-
137-
def test_django_settings(testdir: pytest.Testdir) -> None:
138-
pytest.importorskip("django")
139-
testdir.makeconftest("""
140-
def pytest_configure(config):
141-
import django
142-
from django.conf import settings # noqa
143-
settings.configure()
144-
""")
145-
result = testdir.runpytest("--echo-attr=django.conf.settings.DEBUG")
146-
result.stdout.fnmatch_lines([
147-
" django.conf.settings.DEBUG: False",
148-
])
149-
150-
151-
def test_django_settings_extended(testdir: pytest.Testdir) -> None:
152-
pytest.importorskip("django")
153-
testdir.makeconftest("""
154-
def pytest_configure(config):
155-
import django
156-
from django.conf import settings # noqa
157-
settings.configure()
158-
settings.DATABASES = {'default':{ 'ENGINE': 'sqlite3'}}
159-
""")
160-
result = testdir.runpytest("--echo-attr=django.conf.settings.DATABASES.default.ENGINE")
161-
result.stdout.fnmatch_lines([" django.conf.settings.DATABASES.default.ENGINE: 'sqlite3'"])

0 commit comments

Comments
 (0)