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_legacypath.py
testing/test_legacypath.py
162
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["user_path:bar1.py", "user_path:bar2.py"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_link_resolve.py
testing/test_link_resolve.py
12
subst_path_windows
def
function
def subst_path_windows(filepath: Path): for c in ascii_lowercase[7:]: # Create a subst drive from H-Z. c += ":" if not os.path.exists(c): drive = c break else: raise AssertionError("Unable to find suitable drive letter for subst.") directory = filepath.paren...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_link_resolve.py
testing/test_link_resolve.py
36
subst_path_linux
def
function
def subst_path_linux(filepath: Path): directory = filepath.parent basename = filepath.name target = directory / ".." / "sub2" os.symlink(str(directory), str(target), target_is_directory=_True) try: filename = target / basename yield filename finally: # We don't need to u...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_link_resolve.py
testing/test_link_resolve.py
41
symlink
ref
function
os.symlink(str(directory), str(target), target_is_directory=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_link_resolve.py
testing/test_link_resolve.py
50
test_link_resolve
def
function
def test_link_resolve(pytester: Pytester) -> None: """See: https://github.com/pytest-dev/pytest/issues/5965.""" sub1 = pytester.mkpydir("sub1") p = sub1.joinpath("test_foo.py") p.write_text( textwrap.dedent( """ import pytest def test_foo(): raise Assertio...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_link_resolve.py
testing/test_link_resolve.py
52
mkpydir
ref
function
sub1 = pytester.mkpydir("sub1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_link_resolve.py
testing/test_link_resolve.py
68
subst
ref
function
with subst(p) as subst_p:
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_link_resolve.py
testing/test_link_resolve.py
69
runpytest
ref
function
result = pytester.runpytest(str(subst_p), "-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_link_resolve.py
testing/test_link_resolve.py
79
fnmatch_lines
ref
function
result.stdout.fnmatch_lines([expect])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
14
parametrize
ref
function
@pytest.mark.parametrize(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
17
param
ref
function
pytest.param((None, ValueError)),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
18
param
ref
function
pytest.param((42, SystemExit)),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
19
param
ref
function
pytest.param((False, SystemExit)),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
22
test_wrap_session_notify_exception
def
function
def test_wrap_session_notify_exception(ret_exc, pytester: Pytester) -> None: returncode, exc = ret_exc c1 = pytester.makeconftest( """ import pytest def pytest_sessionstart(): raise {exc}("boom") def pytest_internalerror(excrepr, excinfo): returncode = {...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
24
makeconftest
ref
function
c1 = pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
39
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
64
parametrize
ref
function
@pytest.mark.parametrize("returncode", (None, 42))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
65
test_wrap_session_exit_sessionfinish
def
function
def test_wrap_session_exit_sessionfinish( returncode: Optional[int], pytester: Pytester
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
68
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
77
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
86
parametrize
ref
function
@pytest.mark.parametrize("basetemp", ["foo", "foo/bar"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
87
test_validate_basetemp_ok
def
function
def test_validate_basetemp_ok(tmp_path, basetemp, monkeypatch): monkeypatch.chdir(str(tmp_path)) validate_basetemp(tmp_path / basetemp)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
89
validate_basetemp
ref
function
validate_basetemp(tmp_path / basetemp)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
92
parametrize
ref
function
@pytest.mark.parametrize("basetemp", ["", ".", ".."])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
93
test_validate_basetemp_fails
def
function
def test_validate_basetemp_fails(tmp_path, basetemp, monkeypatch): monkeypatch.chdir(str(tmp_path)) msg = "basetemp must not be empty, the current working directory or any parent directory of it" with pytest.raises(argparse.ArgumentTypeError, match=msg): if basetemp: basetemp = tmp_path ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
96
raises
ref
function
with pytest.raises(argparse.ArgumentTypeError, match=msg):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
99
validate_basetemp
ref
function
validate_basetemp(basetemp)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
102
test_validate_basetemp_integration
def
function
def test_validate_basetemp_integration(pytester: Pytester) -> None: result = pytester.runpytest("--basetemp=.") result.stderr.fnmatch_lines("*basetemp must not be*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
103
runpytest
ref
function
result = pytester.runpytest("--basetemp=.")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
104
fnmatch_lines
ref
function
result.stderr.fnmatch_lines("*basetemp must not be*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
107
TestResolveCollectionArgument
def
class
invocation_path test_file test_dir test_pypath test_does_not_exist test_absolute_paths_are_resolved_correctly
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
109
invocation_path
def
function
def invocation_path(self, pytester: Pytester) -> Path: pytester.syspathinsert(pytester.path / "src") pytester.chdir() pkg = pytester.path.joinpath("src/pkg") pkg.mkdir(parents=_True) pkg.joinpath("__init__.py").touch() pkg.joinpath("test.py").touch() return p...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
110
syspathinsert
ref
function
pytester.syspathinsert(pytester.path / "src")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
119
test_file
def
function
def test_file(self, invocation_path: Path) -> None: """File and parts.""" assert resolve_collection_argument(invocation_path, "src/pkg/test.py") == ( invocation_path / "src/pkg/test.py", [], ) assert resolve_collection_argument(invocation_path, "src/pkg/test.p...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
121
resolve_collection_argument
ref
function
assert resolve_collection_argument(invocation_path, "src/pkg/test.py") == (
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
125
resolve_collection_argument
ref
function
assert resolve_collection_argument(invocation_path, "src/pkg/test.py::") == (
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
129
resolve_collection_argument
ref
function
assert resolve_collection_argument(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
132
resolve_collection_argument
ref
function
assert resolve_collection_argument(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
136
test_dir
def
function
def test_dir(self, invocation_path: Path) -> None: """Directory and parts.""" assert resolve_collection_argument(invocation_path, "src/pkg") == ( invocation_path / "src/pkg", [], ) with pytest.raises( UsageError, match=r"directory argument cannot ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
138
resolve_collection_argument
ref
function
assert resolve_collection_argument(invocation_path, "src/pkg") == (
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
143
raises
ref
function
with pytest.raises(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
146
resolve_collection_argument
ref
function
resolve_collection_argument(invocation_path, "src/pkg::")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
148
raises
ref
function
with pytest.raises(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
151
resolve_collection_argument
ref
function
resolve_collection_argument(invocation_path, "src/pkg::foo::bar")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
153
test_pypath
def
function
def test_pypath(self, invocation_path: Path) -> None: """Dotted name and parts.""" assert resolve_collection_argument( invocation_path, "pkg.test", as_pypath=_True ) == (invocation_path / "src/pkg/test.py", []) assert resolve_collection_argument( invocation_pa...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
155
resolve_collection_argument
ref
function
assert resolve_collection_argument(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
158
resolve_collection_argument
ref
function
assert resolve_collection_argument(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
161
resolve_collection_argument
ref
function
assert resolve_collection_argument(invocation_path, "pkg", as_pypath=True) == (
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
166
raises
ref
function
with pytest.raises(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
169
resolve_collection_argument
ref
function
resolve_collection_argument(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
173
test_does_not_exist
def
function
def test_does_not_exist(self, invocation_path: Path) -> None: """Given a file/module that does not exist raises UsageError.""" with pytest.raises( UsageError, match=re.escape("file or directory not found: foobar") ): resolve_collection_argument(invocation_path, "fooba...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
175
raises
ref
function
with pytest.raises(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
178
resolve_collection_argument
ref
function
resolve_collection_argument(invocation_path, "foobar")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
180
raises
ref
function
with pytest.raises(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
186
resolve_collection_argument
ref
function
resolve_collection_argument(invocation_path, "foobar", as_pypath=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
188
test_absolute_paths_are_resolved_correctly
def
function
def test_absolute_paths_are_resolved_correctly(self, invocation_path: Path) -> None: """Absolute paths resolve back to absolute paths.""" full_path = str(invocation_path / "src") assert resolve_collection_argument(invocation_path, full_path) == ( Path(os.path.abspath("src")), ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
191
resolve_collection_argument
ref
function
assert resolve_collection_argument(invocation_path, full_path) == (
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
192
abspath
ref
function
Path(os.path.abspath("src")),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
198
splitdrive
ref
function
drive, full_path_without_drive = os.path.splitdrive(full_path)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
199
resolve_collection_argument
ref
function
assert resolve_collection_argument(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
201
abspath
ref
function
) == (Path(os.path.abspath("src")), [])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
204
test_module_full_path_without_drive
def
function
def test_module_full_path_without_drive(pytester: Pytester) -> None: """Collect and run test using full path except for the drive letter (#7628). Passing a full path without a drive letter would trigger a bug in legacy_path where it would keep the full path without the drive letter around, instead of resol...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
211
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
221
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
232
splitdrive
ref
function
drive, path = os.path.splitdrive(str(fn))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
234
runpytest
ref
function
result = pytester.runpytest(path, "-v")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_main.py
testing/test_main.py
235
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
15
TestMark
def
class
test_pytest_exists_in_namespace_all test_pytest_mark_notcallable test_mark_with_param test_pytest_mark_name_starts_with_underscore
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
16
parametrize
ref
function
@pytest.mark.parametrize("attr", ["mark", "param"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
17
test_pytest_exists_in_namespace_all
def
function
def test_pytest_exists_in_namespace_all(self, attr: str) -> None: module = sys.modules["pytest"] assert attr in module.__all__ # type: ignore def test_pytest_mark_notcallable(self) -> None: mark = MarkGenerator(_ispytest=_True) with pytest.raises(TypeError): mark() ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
21
test_pytest_mark_notcallable
def
function
def test_pytest_mark_notcallable(self) -> None: mark = MarkGenerator(_ispytest=_True) with pytest.raises(TypeError): mark() # type: ignore[operator] def test_mark_with_param(self): def some_function(abc): pass class SomeClass: pass ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
22
MarkGenerator
ref
function
mark = MarkGenerator(_ispytest=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
23
raises
ref
function
with pytest.raises(TypeError):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
24
mark
ref
function
mark() # type: ignore[operator]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
26
test_mark_with_param
def
function
def test_mark_with_param(self): def some_function(abc): pass class SomeClass: pass assert pytest.mark.foo(some_function) is some_function marked_with_args = pytest.mark.foo.with_args(some_function) assert marked_with_args is not some_function # type...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
27
some_function
def
function
def some_function(abc): pass class SomeClass: pass assert pytest.mark.foo(some_function) is some_function marked_with_args = pytest.mark.foo.with_args(some_function) assert marked_with_args is not some_function # type: ignore[comparison-overlap] ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
30
SomeClass
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
33
foo
ref
function
assert pytest.mark.foo(some_function) is some_function
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
34
with_args
ref
function
marked_with_args = pytest.mark.foo.with_args(some_function)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
37
foo
ref
function
assert pytest.mark.foo(SomeClass) is SomeClass
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
38
with_args
ref
function
assert pytest.mark.foo.with_args(SomeClass) is not SomeClass # type: ignore[comparison-overlap]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
40
test_pytest_mark_name_starts_with_underscore
def
function
def test_pytest_mark_name_starts_with_underscore(self) -> None: mark = MarkGenerator(_ispytest=_True) with pytest.raises(AttributeError): mark._some_name
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
41
MarkGenerator
ref
function
mark = MarkGenerator(_ispytest=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
42
raises
ref
function
with pytest.raises(AttributeError):
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
46
test_marked_class_run_twice
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
50
makepyfile
ref
function
py_file = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
59
basename
ref
function
file_name = os.path.basename(py_file)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
60
inline_run
ref
function
rec = pytester.inline_run(file_name, file_name)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
61
assertoutcome
ref
function
rec.assertoutcome(passed=6)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
64
test_ini_markers
def
function
def test_ini_markers(pytester: Pytester) -> None: pytester.makeini( """ [pytest] markers = a1: this is a webtest marker a2: this is a smoke marker """ ) pytester.makepyfile( """ def test_markers(pytestconfig): markers = pytestco...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
65
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
73
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
83
inline_run
ref
function
rec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
84
assertoutcome
ref
function
rec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
87
test_markers_option
def
function
def test_markers_option(pytester: Pytester) -> None: pytester.makeini( """ [pytest] markers = a1: this is a webtest marker a1some: another marker nodescription """ ) result = pytester.runpytest("--markers") result.stdout.fnmatch_lines( ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
88
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
97
runpytest
ref
function
result = pytester.runpytest("--markers")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
98
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
103
test_ini_markers_whitespace
def
function
def test_ini_markers_whitespace(pytester: Pytester) -> None: pytester.makeini( """ [pytest] markers = a1 : this is a whitespace marker """ ) pytester.makepyfile( """ import pytest @pytest.mark.a1 def test_markers(): assert ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_mark.py
testing/test_mark.py
104
makeini
ref
function
pytester.makeini(