fname
stringlengths
63
176
rel_fname
stringclasses
706 values
line
int64
-1
4.5k
name
stringlengths
1
81
kind
stringclasses
2 values
category
stringclasses
2 values
info
stringlengths
0
77.9k
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
40
makepyfile
ref
function
tfile = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
51
inline_run
ref
function
reprec = pytester.inline_run(tfile)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
52
getfailedcollections
ref
function
values = reprec.getfailedcollections()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
57
test_raises_output
def
function
def test_raises_output(self, pytester: Pytester) -> None: reprec = pytester.inline_runsource( """ import pytest def test_raises_doesnt(): pytest.raises(ValueError, int, "3") """ ) passed, skipped, failed = reprec.listoutcomes() ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
58
inline_runsource
ref
function
reprec = pytester.inline_runsource(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
65
listoutcomes
ref
function
passed, skipped, failed = reprec.listoutcomes()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
70
test_syntax_error_module
def
function
def test_syntax_error_module(self, pytester: Pytester) -> None: reprec = pytester.inline_runsource("this is really not python") values = reprec.getfailedcollections() assert len(values) == 1 out = str(values[0].longrepr) assert out.find("not python") != -1 def test_exit_...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
71
inline_runsource
ref
function
reprec = pytester.inline_runsource("this is really not python")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
72
getfailedcollections
ref
function
values = reprec.getfailedcollections()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
77
test_exit_first_problem
def
function
def test_exit_first_problem(self, pytester: Pytester) -> None: reprec = pytester.inline_runsource( """ def test_one(): assert 0 def test_two(): assert 0 """, "--exitfirst", ) passed, skipped, failed = reprec.countoutcomes() asse...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
78
inline_runsource
ref
function
reprec = pytester.inline_runsource(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
85
countoutcomes
ref
function
passed, skipped, failed = reprec.countoutcomes()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
89
test_maxfail
def
function
def test_maxfail(self, pytester: Pytester) -> None: reprec = pytester.inline_runsource( """ def test_one(): assert 0 def test_two(): assert 0 def test_three(): assert 0 """, "--maxfail=2", ) passed, skipped, failed = reprec....
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
90
inline_runsource
ref
function
reprec = pytester.inline_runsource(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
98
countoutcomes
ref
function
passed, skipped, failed = reprec.countoutcomes()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
102
test_broken_repr
def
function
def test_broken_repr(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ import pytest class reprexc(BaseException): def __str__(self): return "Ha Ha fooled you, I'm a broken repr()." class BrokenRepr1(object):...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
103
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
128
inline_run
ref
function
reprec = pytester.inline_run(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
129
listoutcomes
ref
function
passed, skipped, failed = reprec.listoutcomes()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
134
test_broken_repr_with_showlocals_verbose
def
function
def test_broken_repr_with_showlocals_verbose(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ class ObjWithErrorInRepr: def __repr__(self): raise NotImplementedError def test_repr_error(): x = ObjWithErro...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
135
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
146
inline_run
ref
function
reprec = pytester.inline_run("--showlocals", "-vv", p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
147
listoutcomes
ref
function
passed, skipped, failed = reprec.listoutcomes()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
158
test_skip_file_by_conftest
def
function
def test_skip_file_by_conftest(self, pytester: Pytester) -> None: pytester.makepyfile( conftest=""" import pytest def pytest_collect_file(): pytest.skip("intentional") """, test_file=""" def test_one(): pass """, ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
159
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
170
inline_run
ref
function
reprec = pytester.inline_run(pytester.path)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
172
fail
ref
function
pytest.fail("wrong skipped caught")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
173
getreports
ref
function
reports = reprec.getreports("pytest_collectreport")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
178
TestNewSession
def
class
test_order_of_execution test_collect_only_with_various_situations test_minus_x_import_error test_minus_x_overridden_by_maxfail
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
179
test_order_of_execution
def
function
def test_order_of_execution(self, pytester: Pytester) -> None: reprec = pytester.inline_runsource( """ values = [] def test_1(): values.append(1) def test_2(): values.append(2) def test_3(): assert va...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
180
inline_runsource
ref
function
reprec = pytester.inline_runsource(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
201
countoutcomes
ref
function
passed, skipped, failed = reprec.countoutcomes()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
205
test_collect_only_with_various_situations
def
function
def test_collect_only_with_various_situations(self, pytester: Pytester) -> None: p = pytester.makepyfile( test_one=""" def test_one(): raise ValueError() class TestX(object): def test_method_one(self): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
206
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
221
inline_run
ref
function
reprec = pytester.inline_run("--collect-only", p.parent)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
223
getcalls
ref
function
itemstarted = reprec.getcalls("pytest_itemcollected")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
225
getreports
ref
function
assert not reprec.getreports("pytest_runtest_logreport")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
226
getcalls
ref
function
started = reprec.getcalls("pytest_collectstart")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
227
getreports
ref
function
finished = reprec.getreports("pytest_collectreport")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
233
test_minus_x_import_error
def
function
def test_minus_x_import_error(self, pytester: Pytester) -> None: pytester.makepyfile(__init__="") pytester.makepyfile(test_one="xxxx", test_two="yyyy") reprec = pytester.inline_run("-x", pytester.path) finished = reprec.getreports("pytest_collectreport") colfail = [x for x in...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
234
makepyfile
ref
function
pytester.makepyfile(__init__="")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
235
makepyfile
ref
function
pytester.makepyfile(test_one="xxxx", test_two="yyyy")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
236
inline_run
ref
function
reprec = pytester.inline_run("-x", pytester.path)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
237
getreports
ref
function
finished = reprec.getreports("pytest_collectreport")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
241
test_minus_x_overridden_by_maxfail
def
function
def test_minus_x_overridden_by_maxfail(self, pytester: Pytester) -> None: pytester.makepyfile(__init__="") pytester.makepyfile(test_one="xxxx", test_two="yyyy", test_third="zzz") reprec = pytester.inline_run("-x", "--maxfail=2", pytester.path) finished = reprec.getreports("pytest_col...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
242
makepyfile
ref
function
pytester.makepyfile(__init__="")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
243
makepyfile
ref
function
pytester.makepyfile(test_one="xxxx", test_two="yyyy", test_third="zzz")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
244
inline_run
ref
function
reprec = pytester.inline_run("-x", "--maxfail=2", pytester.path)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
245
getreports
ref
function
finished = reprec.getreports("pytest_collectreport")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
250
test_plugin_specify
def
function
def test_plugin_specify(pytester: Pytester) -> None: with pytest.raises(ImportError): pytester.parseconfig("-p", "nqweotexistent") # pytest.raises(ImportError, # "config.do_configure(config)" # )
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
251
raises
ref
function
with pytest.raises(ImportError):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
252
parseconfig
ref
function
pytester.parseconfig("-p", "nqweotexistent")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
258
test_plugin_already_exists
def
function
def test_plugin_already_exists(pytester: Pytester) -> None: config = pytester.parseconfig("-p", "terminal") assert config.option.plugins == ["terminal"] config._do_configure() config._ensure_unconfigure()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
259
parseconfig
ref
function
config = pytester.parseconfig("-p", "terminal")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
261
_do_configure
ref
function
config._do_configure()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
262
_ensure_unconfigure
ref
function
config._ensure_unconfigure()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
265
test_exclude
def
function
def test_exclude(pytester: Pytester) -> None: hellodir = pytester.mkdir("hello") hellodir.joinpath("test_hello.py").write_text("x y syntaxerror") hello2dir = pytester.mkdir("hello2") hello2dir.joinpath("test_hello2.py").write_text("x y syntaxerror") pytester.makepyfile(test_ok="def test_pass(): pass...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
266
mkdir
ref
function
hellodir = pytester.mkdir("hello")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
267
joinpath
ref
function
hellodir.joinpath("test_hello.py").write_text("x y syntaxerror")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
267
write_text
ref
function
hellodir.joinpath("test_hello.py").write_text("x y syntaxerror")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
268
mkdir
ref
function
hello2dir = pytester.mkdir("hello2")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
269
joinpath
ref
function
hello2dir.joinpath("test_hello2.py").write_text("x y syntaxerror")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
269
write_text
ref
function
hello2dir.joinpath("test_hello2.py").write_text("x y syntaxerror")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
270
makepyfile
ref
function
pytester.makepyfile(test_ok="def test_pass(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
271
runpytest
ref
function
result = pytester.runpytest("--ignore=hello", "--ignore=hello2")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
273
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
276
test_exclude_glob
def
function
def test_exclude_glob(pytester: Pytester) -> None: hellodir = pytester.mkdir("hello") hellodir.joinpath("test_hello.py").write_text("x y syntaxerror") hello2dir = pytester.mkdir("hello2") hello2dir.joinpath("test_hello2.py").write_text("x y syntaxerror") hello3dir = pytester.mkdir("hallo3") hell...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
277
mkdir
ref
function
hellodir = pytester.mkdir("hello")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
278
joinpath
ref
function
hellodir.joinpath("test_hello.py").write_text("x y syntaxerror")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
278
write_text
ref
function
hellodir.joinpath("test_hello.py").write_text("x y syntaxerror")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
279
mkdir
ref
function
hello2dir = pytester.mkdir("hello2")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
280
joinpath
ref
function
hello2dir.joinpath("test_hello2.py").write_text("x y syntaxerror")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
280
write_text
ref
function
hello2dir.joinpath("test_hello2.py").write_text("x y syntaxerror")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
281
mkdir
ref
function
hello3dir = pytester.mkdir("hallo3")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
282
joinpath
ref
function
hello3dir.joinpath("test_hello3.py").write_text("x y syntaxerror")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
282
write_text
ref
function
hello3dir.joinpath("test_hello3.py").write_text("x y syntaxerror")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
283
mkdir
ref
function
subdir = pytester.mkdir("sub")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
284
joinpath
ref
function
subdir.joinpath("test_hello4.py").write_text("x y syntaxerror")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
284
write_text
ref
function
subdir.joinpath("test_hello4.py").write_text("x y syntaxerror")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
285
makepyfile
ref
function
pytester.makepyfile(test_ok="def test_pass(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
286
runpytest
ref
function
result = pytester.runpytest("--ignore-glob=*h[ea]llo*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
288
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
291
test_deselect
def
function
def test_deselect(pytester: Pytester) -> None: pytester.makepyfile( test_a=""" import pytest def test_a1(): pass @pytest.mark.parametrize('b', range(3)) def test_a2(b): pass class TestClass: def test_c1(self): pass def test_c2(self): pass ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
292
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
307
runpytest
ref
function
result = pytester.runpytest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
314
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*3 passed, 3 deselected*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
319
test_sessionfinish_with_start
def
function
def test_sessionfinish_with_start(pytester: Pytester) -> None: pytester.makeconftest( """ import os values = [] def pytest_sessionstart(): values.append(os.getcwd()) os.chdir("..") def pytest_sessionfinish(): assert values[0] == os.getcwd(...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
320
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
333
runpytest
ref
function
res = pytester.runpytest("--collect-only")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
337
parametrize
ref
function
@pytest.mark.parametrize("path", ["root", "{relative}/root", "{environment}/root"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
338
test_rootdir_option_arg
def
function
def test_rootdir_option_arg( pytester: Pytester, monkeypatch: MonkeyPatch, path: str
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
341
setenv
ref
function
monkeypatch.setenv("PY_ROOTDIR_PATH", str(pytester.path))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
345
mkdir
ref
function
rootdir.mkdir(parents=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
346
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
354
runpytest
ref
function
result = pytester.runpytest(f"--rootdir={path}")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
355
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
364
test_rootdir_wrong_option_arg
def
function
def test_rootdir_wrong_option_arg(pytester: Pytester) -> None: result = pytester.runpytest("--rootdir=wrong_dir") result.stderr.fnmatch_lines( ["*Directory *wrong_dir* not found. Check your '--rootdir' option.*"] )
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
365
runpytest
ref
function
result = pytester.runpytest("--rootdir=wrong_dir")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_session.py
testing/test_session.py
366
fnmatch_lines
ref
function
result.stderr.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_setuponly.py
testing/test_setuponly.py
7
fixture
ref
function
@pytest.fixture(params=["--setup-only", "--setup-plan", "--setup-show"], scope="module")