File tree Expand file tree Collapse file tree 4 files changed +13
-43
lines changed Expand file tree Collapse file tree 4 files changed +13
-43
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ jobs:
19
19
fail-fast : false
20
20
matrix :
21
21
env :
22
- # - "3.13"
22
+ - " 3.13"
23
23
- " 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
31
31
steps :
32
32
- uses : actions/checkout@v4
33
33
with :
46
46
if : startsWith(matrix.env, '3.') && matrix.env != '3.13'
47
47
run : uv python install --python-preference only-managed ${{ matrix.env }}
48
48
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 }}
51
51
52
52
- name : Run test suite
53
53
run :
Original file line number Diff line number Diff line change @@ -113,11 +113,9 @@ max_supported_python = "3.13"
113
113
[tool .pytest .ini_options ]
114
114
addopts = " -ra -q"
115
115
testpaths = [
116
+ " src" ,
116
117
" tests" ,
117
118
]
118
- # echo_envs = ["ENV1", "ENV2"]
119
- # echo_attributes = []
120
- # echo_versions = ["pytest"]
121
119
122
120
[tool .coverage ]
123
121
run.source = [
Original file line number Diff line number Diff line change @@ -208,9 +208,9 @@ def pytest_load_initial_conftests(
208
208
for entry in _load_values (early_config ):
209
209
if entry .type in {"env" , "envs" , "echo_envs" }:
210
210
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" } :
212
212
early_config .option .echo_attributes .append (entry .key )
213
- if entry .type in [ "version" , "echo_version" ] :
213
+ if entry .type in { "version" , "echo_version" } :
214
214
early_config .option .echo_versions .append (entry .key )
215
215
216
216
Original file line number Diff line number Diff line change @@ -130,32 +130,4 @@ def test_echo_no_inspections(testdir: pytest.Testdir) -> None:
130
130
def test_echo_attr_module_object_attr (testdir : pytest .Testdir ) -> None :
131
131
result = testdir .runpytest ("--echo-attr=linecache.cache.__class__" )
132
132
match = " linecache.cache.__class__: <class 'dict'>"
133
-
134
133
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'" ])
You can’t perform that action at this time.
0 commit comments