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_recwarn.py | testing/test_recwarn.py | 209 | deprecated_call | ref | function | with pytest.deprecated_call():
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 210 | f | ref | function | f()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 212 | test_deprecated_call_supports_match | def | function | def test_deprecated_call_supports_match(self) -> None:
with pytest.deprecated_call(match=r"must be \d+$"):
warnings.warn("value must be 42", DeprecationWarning)
with pytest.raises(pytest.fail.Exception):
with pytest.deprecated_call(match=r"must be \d+$"):
war... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 213 | deprecated_call | ref | function | with pytest.deprecated_call(match=r"must be \d+$"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 216 | raises | ref | function | with pytest.raises(pytest.fail.Exception):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 217 | deprecated_call | ref | function | with pytest.deprecated_call(match=r"must be \d+$"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 221 | TestWarns | def | class | test_check_callable test_several_messages test_function test_warning_tuple test_as_contextmanager test_record test_record_only test_record_only_none_deprecated_warn test_record_by_subclass test_double_test test_match_regex test_one_from_multiple_warns test_none_of_multiple_warns test_can_capture_previously_warned test_... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 222 | test_check_callable | def | function | def test_check_callable(self) -> None:
source = "warnings.warn('w1', RuntimeWarning)"
with pytest.raises(TypeError, match=r".* must be callable"):
pytest.warns(RuntimeWarning, source) # type: ignore
def test_several_messages(self) -> None:
# different messages, b/c Python s... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 224 | raises | ref | function | with pytest.raises(TypeError, match=r".* must be callable"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 225 | warns | ref | function | pytest.warns(RuntimeWarning, source) # type: ignore
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 227 | test_several_messages | def | function | def test_several_messages(self) -> None:
# different messages, b/c Python suppresses multiple identical warnings
pytest.warns(RuntimeWarning, lambda: warnings.warn("w1", RuntimeWarning))
with pytest.raises(pytest.fail.Exception):
pytest.warns(UserWarning, lambda: warnings.warn("w... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 229 | warns | ref | function | pytest.warns(RuntimeWarning, lambda: warnings.warn("w1", RuntimeWarning))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 230 | raises | ref | function | with pytest.raises(pytest.fail.Exception):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 231 | warns | ref | function | pytest.warns(UserWarning, lambda: warnings.warn("w2", RuntimeWarning))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 232 | warns | ref | function | pytest.warns(RuntimeWarning, lambda: warnings.warn("w3", RuntimeWarning))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 234 | test_function | def | function | def test_function(self) -> None:
pytest.warns(
SyntaxWarning, lambda msg: warnings.warn(msg, SyntaxWarning), "syntax"
)
def test_warning_tuple(self) -> None:
pytest.warns(
(RuntimeWarning, SyntaxWarning), lambda: warnings.warn("w1", RuntimeWarning)
)
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 235 | warns | ref | function | pytest.warns(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 239 | test_warning_tuple | def | function | def test_warning_tuple(self) -> None:
pytest.warns(
(RuntimeWarning, SyntaxWarning), lambda: warnings.warn("w1", RuntimeWarning)
)
pytest.warns(
(RuntimeWarning, SyntaxWarning), lambda: warnings.warn("w2", SyntaxWarning)
)
pytest.raises(
py... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 240 | warns | ref | function | pytest.warns(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 243 | warns | ref | function | pytest.warns(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 246 | raises | ref | function | pytest.raises(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 248 | warns | ref | function | lambda: pytest.warns(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 254 | test_as_contextmanager | def | function | def test_as_contextmanager(self) -> None:
with pytest.warns(RuntimeWarning):
warnings.warn("runtime", RuntimeWarning)
with pytest.warns(UserWarning):
warnings.warn("user", UserWarning)
with pytest.raises(pytest.fail.Exception) as excinfo:
with pytest.war... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 255 | warns | ref | function | with pytest.warns(RuntimeWarning):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 258 | warns | ref | function | with pytest.warns(UserWarning):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 261 | raises | ref | function | with pytest.raises(pytest.fail.Exception) as excinfo:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 262 | warns | ref | function | with pytest.warns(RuntimeWarning):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 264 | match | ref | function | excinfo.match(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 269 | raises | ref | function | with pytest.raises(pytest.fail.Exception) as excinfo:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 270 | warns | ref | function | with pytest.warns(UserWarning):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 272 | match | ref | function | excinfo.match(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 277 | raises | ref | function | with pytest.raises(pytest.fail.Exception) as excinfo:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 278 | warns | ref | function | with pytest.warns(UserWarning):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 280 | match | ref | function | excinfo.match(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 286 | raises | ref | function | with pytest.raises(pytest.fail.Exception) as excinfo:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 287 | warns | ref | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 295 | match | ref | function | excinfo.match(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 296 | escape | ref | function | re.escape(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 303 | test_record | def | function | def test_record(self) -> None:
with pytest.warns(UserWarning) as record:
warnings.warn("user", UserWarning)
assert len(record) == 1
assert str(record[0].message) == "user"
def test_record_only(self) -> None:
with pytest.warns() as record:
warnings.warn("... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 304 | warns | ref | function | with pytest.warns(UserWarning) as record:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 310 | test_record_only | def | function | def test_record_only(self) -> None:
with pytest.warns() as record:
warnings.warn("user", UserWarning)
warnings.warn("runtime", RuntimeWarning)
assert len(record) == 2
assert str(record[0].message) == "user"
assert str(record[1].message) == "runtime"
def ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 311 | warns | ref | function | with pytest.warns() as record:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 319 | test_record_only_none_deprecated_warn | def | function | def test_record_only_none_deprecated_warn(self) -> None:
# This should become an error when WARNS_NONE_ARG is removed in Pytest 8.0
with warnings.catch_warnings():
warnings.simplefilter("ignore")
with pytest.warns(None) as record: # type: ignore[call-overload]
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 323 | warns | ref | function | with pytest.warns(None) as record: # type: ignore[call-overload]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 331 | test_record_by_subclass | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 332 | warns | ref | function | with pytest.warns(Warning) as record:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 340 | MyUserWarning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 343 | MyRuntimeWarning | def | class | |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 346 | warns | ref | function | with pytest.warns((UserWarning, RuntimeWarning)) as record:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 354 | test_double_test | def | function | def test_double_test(self, pytester: Pytester) -> None:
"""If a test is run again, the warning should still be raised"""
pytester.makepyfile(
"""
import pytest
import warnings
@pytest.mark.parametrize('run', [1, 2])
def test(run):
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 356 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 367 | runpytest | ref | function | result = pytester.runpytest()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 368 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*2 passed in*"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 370 | test_match_regex | def | function | def test_match_regex(self) -> None:
with pytest.warns(UserWarning, match=r"must be \d+$"):
warnings.warn("value must be 42", UserWarning)
with pytest.raises(pytest.fail.Exception):
with pytest.warns(UserWarning, match=r"must be \d+$"):
warnings.warn("this is ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 371 | warns | ref | function | with pytest.warns(UserWarning, match=r"must be \d+$"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 374 | raises | ref | function | with pytest.raises(pytest.fail.Exception):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 375 | warns | ref | function | with pytest.warns(UserWarning, match=r"must be \d+$"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 378 | raises | ref | function | with pytest.raises(pytest.fail.Exception):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 379 | warns | ref | function | with pytest.warns(FutureWarning, match=r"must be \d+$"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 382 | test_one_from_multiple_warns | def | function | def test_one_from_multiple_warns(self) -> None:
with pytest.warns(UserWarning, match=r"aaa"):
warnings.warn("cccccccccc", UserWarning)
warnings.warn("bbbbbbbbbb", UserWarning)
warnings.warn("aaaaaaaaaa", UserWarning)
def test_none_of_multiple_warns(self) -> None:
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 383 | warns | ref | function | with pytest.warns(UserWarning, match=r"aaa"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 388 | test_none_of_multiple_warns | def | function | def test_none_of_multiple_warns(self) -> None:
with pytest.raises(pytest.fail.Exception):
with pytest.warns(UserWarning, match=r"aaa"):
warnings.warn("bbbbbbbbbb", UserWarning)
warnings.warn("cccccccccc", UserWarning)
@pytest.mark.filterwarnings("ignore")
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 389 | raises | ref | function | with pytest.raises(pytest.fail.Exception):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 390 | warns | ref | function | with pytest.warns(UserWarning, match=r"aaa"):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 395 | test_can_capture_previously_warned | def | function | def test_can_capture_previously_warned(self) -> None:
def f() -> int:
warnings.warn(UserWarning("ohai"))
return 10
assert f() == 10
assert pytest.warns(UserWarning, f) == 10
assert pytest.warns(UserWarning, f) == 10
assert pytest.warns(UserWarning, f)... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 396 | f | def | function | def f() -> int:
warnings.warn(UserWarning("ohai"))
return 10
assert f() == 10
assert pytest.warns(UserWarning, f) == 10
assert pytest.warns(UserWarning, f) == 10
assert pytest.warns(UserWarning, f) != "10" # type: ignore[comparison-overlap]
def test... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 400 | f | ref | function | assert f() == 10
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 401 | warns | ref | function | assert pytest.warns(UserWarning, f) == 10
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 402 | warns | ref | function | assert pytest.warns(UserWarning, f) == 10
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 403 | warns | ref | function | assert pytest.warns(UserWarning, f) != "10" # type: ignore[comparison-overlap]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 405 | test_warns_context_manager_with_kwargs | def | function | def test_warns_context_manager_with_kwargs(self) -> None:
with pytest.raises(TypeError) as excinfo:
with pytest.warns(UserWarning, foo="bar"): # type: ignore
pass
assert "Unexpected keyword arguments" in str(excinfo.value)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 406 | raises | ref | function | with pytest.raises(TypeError) as excinfo:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_recwarn.py | testing/test_recwarn.py | 407 | warns | ref | function | with pytest.warns(UserWarning, foo="bar"): # type: ignore
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 12 | TestReportSerialization | def | class | test_xdist_longrepr_to_str_issue_241 test_xdist_report_longrepr_reprcrash_130 test_reprentries_serialization_170 test_reprentries_serialization_196 test_itemreport_outcomes test_collectreport_passed test_collectreport_fail test_extended_report_deserialization test_paths_support test_deserialization_failure test_chained... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 13 | test_xdist_longrepr_to_str_issue_241 | def | function | def test_xdist_longrepr_to_str_issue_241(self, pytester: Pytester) -> None:
"""Regarding issue pytest-xdist#241.
This test came originally from test_remote.py in xdist (ca03269).
"""
pytester.makepyfile(
"""
def test_a(): assert _False
def test_b(... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 18 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 24 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 25 | getreports | ref | function | reports = reprec.getreports("pytest_runtest_logreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 30 | _to_json | ref | function | assert test_a_call._to_json()["longrepr"]["reprtraceback"]["style"] == "long"
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 34 | _to_json | ref | function | assert test_b_call._to_json()["longrepr"] is None
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 36 | test_xdist_report_longrepr_reprcrash_130 | def | function | def test_xdist_report_longrepr_reprcrash_130(self, pytester: Pytester) -> None:
"""Regarding issue pytest-xdist#130
This test came originally from test_remote.py in xdist (ca03269).
"""
reprec = pytester.inline_runsource(
"""
def test_fail():
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 41 | inline_runsource | ref | function | reprec = pytester.inline_runsource(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 47 | getreports | ref | function | reports = reprec.getreports("pytest_runtest_logreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 53 | _to_json | ref | function | d = rep._to_json()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 54 | _from_json | ref | function | a = TestReport._from_json(d)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 75 | test_reprentries_serialization_170 | def | function | def test_reprentries_serialization_170(self, pytester: Pytester) -> None:
"""Regarding issue pytest-xdist#170
This test came originally from test_remote.py in xdist (ca03269).
"""
from _pytest._code.code import ReprEntry
reprec = pytester.inline_runsource(
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 82 | inline_runsource | ref | function | reprec = pytester.inline_runsource(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 90 | getreports | ref | function | reports = reprec.getreports("pytest_runtest_logreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 94 | _to_json | ref | function | d = rep._to_json()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 95 | _from_json | ref | function | a = TestReport._from_json(d)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 121 | test_reprentries_serialization_196 | def | function | def test_reprentries_serialization_196(self, pytester: Pytester) -> None:
"""Regarding issue pytest-xdist#196
This test came originally from test_remote.py in xdist (ca03269).
"""
from _pytest._code.code import ReprEntryNative
reprec = pytester.inline_runsource(
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 128 | inline_runsource | ref | function | reprec = pytester.inline_runsource(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 136 | getreports | ref | function | reports = reprec.getreports("pytest_runtest_logreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 140 | _to_json | ref | function | d = rep._to_json()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 141 | _from_json | ref | function | a = TestReport._from_json(d)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 150 | test_itemreport_outcomes | def | function | def test_itemreport_outcomes(self, pytester: Pytester) -> None:
# This test came originally from test_remote.py in xdist (ca03269).
reprec = pytester.inline_runsource(
"""
import pytest
def test_pass(): pass
def test_fail(): 0/0
@pytest.mar... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 152 | inline_runsource | ref | function | reprec = pytester.inline_runsource(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 167 | getreports | ref | function | reports = reprec.getreports("pytest_runtest_logreport")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 170 | _to_json | ref | function | d = rep._to_json()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_reports.py | testing/test_reports.py | 171 | _from_json | ref | function | newrep = TestReport._from_json(d)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.