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_junitxml.py
testing/test_junitxml.py
300
assert_attr
ref
function
node.assert_attr(errors=1, tests=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
301
find_first_by_tag
ref
function
tnode = node.find_first_by_tag("testcase")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
302
assert_attr
ref
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
303
find_first_by_tag
ref
function
fnode = tnode.find_first_by_tag("error")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
304
assert_attr
ref
function
fnode.assert_attr(message='failed on setup with "ValueError: Error reason"')
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
305
toxml
ref
function
assert "ValueError" in fnode.toxml()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
308
test_teardown_error
def
function
def test_teardown_error( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str ) -> None: pytester.makepyfile( """ import pytest @pytest.fixture def arg(): yield raise ValueError('Error reason') ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
311
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
323
run_and_parse
ref
function
result, dom = run_and_parse(family=xunit_family)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
325
find_first_by_tag
ref
function
node = dom.find_first_by_tag("testsuite")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
326
find_first_by_tag
ref
function
tnode = node.find_first_by_tag("testcase")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
327
assert_attr
ref
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
328
find_first_by_tag
ref
function
fnode = tnode.find_first_by_tag("error")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
329
assert_attr
ref
function
fnode.assert_attr(message='failed on teardown with "ValueError: Error reason"')
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
330
toxml
ref
function
assert "ValueError" in fnode.toxml()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
333
test_call_failure_teardown_error
def
function
def test_call_failure_teardown_error( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str ) -> None: pytester.makepyfile( """ import pytest @pytest.fixture def arg(): yield raise Exception("Teard...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
336
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
348
run_and_parse
ref
function
result, dom = run_and_parse(family=xunit_family)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
350
find_first_by_tag
ref
function
node = dom.find_first_by_tag("testsuite")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
351
assert_attr
ref
function
node.assert_attr(errors=1, failures=1, tests=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
352
find_by_tag
ref
function
first, second = dom.find_by_tag("testcase")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
356
find_first_by_tag
ref
function
fnode = first.find_first_by_tag("failure")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
357
assert_attr
ref
function
fnode.assert_attr(message="Exception: Call Exception")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
358
find_first_by_tag
ref
function
snode = second.find_first_by_tag("error")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
359
assert_attr
ref
function
snode.assert_attr(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
364
test_skip_contains_name_reason
def
function
def test_skip_contains_name_reason( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str ) -> None: pytester.makepyfile( """ import pytest def test_skip(): pytest.skip("hello23") """ ) result, dom = ru...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
367
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
374
run_and_parse
ref
function
result, dom = run_and_parse(family=xunit_family)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
376
find_first_by_tag
ref
function
node = dom.find_first_by_tag("testsuite")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
377
assert_attr
ref
function
node.assert_attr(skipped=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
378
find_first_by_tag
ref
function
tnode = node.find_first_by_tag("testcase")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
379
assert_attr
ref
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
380
find_first_by_tag
ref
function
snode = tnode.find_first_by_tag("skipped")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
381
assert_attr
ref
function
snode.assert_attr(type="pytest.skip", message="hello23")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
384
test_mark_skip_contains_name_reason
def
function
def test_mark_skip_contains_name_reason( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str ) -> None: pytester.makepyfile( """ import pytest @pytest.mark.skip(reason="hello24") def test_skip(): assert _True ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
387
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
395
run_and_parse
ref
function
result, dom = run_and_parse(family=xunit_family)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
397
find_first_by_tag
ref
function
node = dom.find_first_by_tag("testsuite")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
398
assert_attr
ref
function
node.assert_attr(skipped=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
399
find_first_by_tag
ref
function
tnode = node.find_first_by_tag("testcase")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
400
assert_attr
ref
function
tnode.assert_attr(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
403
find_first_by_tag
ref
function
snode = tnode.find_first_by_tag("skipped")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
404
assert_attr
ref
function
snode.assert_attr(type="pytest.skip", message="hello24")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
407
test_mark_skipif_contains_name_reason
def
function
def test_mark_skipif_contains_name_reason( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str ) -> None: pytester.makepyfile( """ import pytest GLOBAL_CONDITION = _True @pytest.mark.skipif(GLOBAL_CONDITION, reason="hello25") ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
410
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
419
run_and_parse
ref
function
result, dom = run_and_parse(family=xunit_family)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
421
find_first_by_tag
ref
function
node = dom.find_first_by_tag("testsuite")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
422
assert_attr
ref
function
node.assert_attr(skipped=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
423
find_first_by_tag
ref
function
tnode = node.find_first_by_tag("testcase")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
424
assert_attr
ref
function
tnode.assert_attr(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
427
find_first_by_tag
ref
function
snode = tnode.find_first_by_tag("skipped")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
428
assert_attr
ref
function
snode.assert_attr(type="pytest.skip", message="hello25")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
431
test_mark_skip_doesnt_capture_output
def
function
def test_mark_skip_doesnt_capture_output( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str ) -> None: pytester.makepyfile( """ import pytest @pytest.mark.skip(reason="foo") def test_skip(): print("bar!") ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
434
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
442
run_and_parse
ref
function
result, dom = run_and_parse(family=xunit_family)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
444
find_first_by_tag
ref
function
node_xml = dom.find_first_by_tag("testsuite").toxml()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
444
toxml
ref
function
node_xml = dom.find_first_by_tag("testsuite").toxml()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
448
test_classname_instance
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
451
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
458
run_and_parse
ref
function
result, dom = run_and_parse(family=xunit_family)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
460
find_first_by_tag
ref
function
node = dom.find_first_by_tag("testsuite")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
461
assert_attr
ref
function
node.assert_attr(failures=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
462
find_first_by_tag
ref
function
tnode = node.find_first_by_tag("testcase")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
463
assert_attr
ref
function
tnode.assert_attr(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
468
test_classname_nested_dir
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
473
run_and_parse
ref
function
result, dom = run_and_parse(family=xunit_family)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
475
find_first_by_tag
ref
function
node = dom.find_first_by_tag("testsuite")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
476
assert_attr
ref
function
node.assert_attr(failures=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
477
find_first_by_tag
ref
function
tnode = node.find_first_by_tag("testcase")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
478
assert_attr
ref
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
481
test_internal_error
def
function
def test_internal_error( self, pytester: Pytester, run_and_parse: RunAndParse, xunit_family: str ) -> None: pytester.makeconftest("def pytest_runtest_protocol(): 0 / 0") pytester.makepyfile("def test_function(): pass") result, dom = run_and_parse(family=xunit_family) asse...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
484
makeconftest
ref
function
pytester.makeconftest("def pytest_runtest_protocol(): 0 / 0")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
485
makepyfile
ref
function
pytester.makepyfile("def test_function(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
486
run_and_parse
ref
function
result, dom = run_and_parse(family=xunit_family)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
488
find_first_by_tag
ref
function
node = dom.find_first_by_tag("testsuite")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
489
assert_attr
ref
function
node.assert_attr(errors=1, tests=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
490
find_first_by_tag
ref
function
tnode = node.find_first_by_tag("testcase")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
491
assert_attr
ref
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
492
find_first_by_tag
ref
function
fnode = tnode.find_first_by_tag("error")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
493
assert_attr
ref
function
fnode.assert_attr(message="internal error")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
494
toxml
ref
function
assert "Division" in fnode.toxml()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
496
parametrize
ref
function
@pytest.mark.parametrize(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
500
test_failure_function
def
function
def test_failure_function( self, pytester: Pytester, junit_logging, run_and_parse: RunAndParse, xunit_family, ) -> None: pytester.makepyfile( """ import logging import sys def test_fail(): print("hel...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
507
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
521
run_and_parse
ref
function
result, dom = run_and_parse(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
525
find_first_by_tag
ref
function
node = dom.find_first_by_tag("testsuite")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
526
assert_attr
ref
function
node.assert_attr(failures=1, tests=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
527
find_first_by_tag
ref
function
tnode = node.find_first_by_tag("testcase")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
528
assert_attr
ref
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
529
find_first_by_tag
ref
function
fnode = tnode.find_first_by_tag("failure")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
530
assert_attr
ref
function
fnode.assert_attr(message="ValueError: 42")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
531
toxml
ref
function
assert "ValueError" in fnode.toxml(), "ValueError not included"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
534
find_first_by_tag
ref
function
logdata = tnode.find_first_by_tag("system-out")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
535
toxml
ref
function
log_xml = logdata.toxml()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
540
find_first_by_tag
ref
function
systemout = tnode.find_first_by_tag("system-out")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
541
toxml
ref
function
systemout_xml = systemout.toxml()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
548
find_first_by_tag
ref
function
systemerr = tnode.find_first_by_tag("system-err")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
549
toxml
ref
function
systemerr_xml = systemerr.toxml()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
559
find_by_tag
ref
function
assert not tnode.find_by_tag("log"), "Found unexpected content: log"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_junitxml.py
testing/test_junitxml.py
560
find_by_tag
ref
function
assert not tnode.find_by_tag(