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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,204
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,210
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,211
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*E*assert (False == True) == True"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,213
test_many_brackets
def
function
def test_many_brackets(self, pytester: Pytester) -> None: pytester.makepyfile( """ def test_ternary_display(): assert _True == ((_False == _True) == _True) """ ) result = pytester.runpytest() result.stdout.fnmatch_lines(["*E*assert...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,214
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,220
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,221
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*E*assert True == ((False == True) == True)"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,224
TestIssue2121
def
class
test_rewrite_python_files_contain_subdirs
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,225
test_rewrite_python_files_contain_subdirs
def
function
def test_rewrite_python_files_contain_subdirs(self, pytester: Pytester) -> None: pytester.makepyfile( **{ "tests/file.py": """ def test_simple_failure(): assert 1 + 1 == 3 """ } ) pytester.makeini( ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,226
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,234
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,240
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,241
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*E*assert (1 + 1) == 3"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,244
skipif
ref
function
@pytest.mark.skipif(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,247
parametrize
ref
function
@pytest.mark.parametrize("offset", [-1, +1])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,248
test_source_mtime_long_long
def
function
def test_source_mtime_long_long(pytester: Pytester, offset) -> None: """Support modification dates after 2038 in rewritten files (#4903). pytest would crash with: fp.write(struct.pack("<ll", mtime, size)) E struct.error: argument out of range """ p = pytester.makepyfile( ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,256
makepyfile
ref
function
p = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,266
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,270
test_rewrite_infinite_recursion
def
function
def test_rewrite_infinite_recursion( pytester: Pytester, pytestconfig, monkeypatch
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,278
syspathinsert
ref
function
pytester.syspathinsert()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,279
makepyfile
ref
function
pytester.makepyfile(test_foo="def test_foo(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,280
makepyfile
ref
function
pytester.makepyfile(test_bar="def test_bar(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,286
spy_write_pyc
def
function
def spy_write_pyc(*args, **kwargs): # make a note that we have called _write_pyc write_pyc_called.append(_True) # try to import a module at this point: we should not try to rewrite this module assert hook.find_spec("test_bar") is None return original_write_pyc(*args, **kwargs...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,290
find_spec
ref
function
assert hook.find_spec("test_bar") is None
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,291
original_write_pyc
ref
function
return original_write_pyc(*args, **kwargs)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,296
AssertionRewritingHook
ref
function
hook = AssertionRewritingHook(pytestconfig)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,297
find_spec
ref
function
spec = hook.find_spec("test_foo")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,299
module_from_spec
ref
function
module = importlib.util.module_from_spec(spec)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,300
exec_module
ref
function
hook.exec_module(module)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,304
TestEarlyRewriteBailout
def
class
hook test_basic test_pattern_contains_subdirectories test_cwd_changed
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,306
hook
def
function
def hook( self, pytestconfig, monkeypatch, pytester: Pytester ) -> AssertionRewritingHook: """Returns a patched AssertionRewritingHook instance so we can configure its initial paths and track if PathFinder.find_spec has been called. """ import importlib.machinery ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,317
StubSession
def
class
isinitpath
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,320
isinitpath
def
function
def isinitpath(self, p): return p in self._initialpaths def spy_find_spec(name, path): self.find_spec_calls.append(name) return importlib.machinery.PathFinder.find_spec(name, path) hook = AssertionRewritingHook(pytestconfig) # use default pat...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,323
spy_find_spec
def
function
def spy_find_spec(name, path): self.find_spec_calls.append(name) return importlib.machinery.PathFinder.find_spec(name, path) hook = AssertionRewritingHook(pytestconfig) # use default patterns, otherwise we inherit pytest's testing config hook.fnpats[:] = ["test_*...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,325
find_spec
ref
function
return importlib.machinery.PathFinder.find_spec(name, path)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,327
AssertionRewritingHook
ref
function
hook = AssertionRewritingHook(pytestconfig)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,331
set_session
ref
function
hook.set_session(StubSession()) # type: ignore[arg-type]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,331
StubSession
ref
function
hook.set_session(StubSession()) # type: ignore[arg-type]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,332
syspathinsert
ref
function
pytester.syspathinsert()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,335
test_basic
def
function
def test_basic(self, pytester: Pytester, hook: AssertionRewritingHook) -> None: """ Ensure we avoid calling PathFinder.find_spec when we know for sure a certain module will not be rewritten to optimize assertion rewriting (#3918). """ pytester.makeconftest( """ ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,340
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,347
makepyfile
ref
function
pytester.makepyfile(test_foo="def test_foo(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,348
makepyfile
ref
function
pytester.makepyfile(bar="def bar(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,349
makepyfile
ref
function
foobar_path = pytester.makepyfile(foobar="def foobar(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,353
find_spec
ref
function
assert hook.find_spec("conftest") is not None
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,357
find_spec
ref
function
assert hook.find_spec("test_foo") is not None
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,361
find_spec
ref
function
assert hook.find_spec("bar") is None
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,365
find_spec
ref
function
assert hook.find_spec("foobar") is not None
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,368
test_pattern_contains_subdirectories
def
function
def test_pattern_contains_subdirectories( self, pytester: Pytester, hook: AssertionRewritingHook ) -> None: """If one of the python_files patterns contain subdirectories ("tests/**.py") we can't bailout early because we need to match with the full path, which can only be found by calling...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,374
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,382
syspathinsert
ref
function
pytester.syspathinsert("tests")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,384
find_spec
ref
function
assert hook.find_spec("file") is not None
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,387
skipif
ref
function
@pytest.mark.skipif(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,390
test_cwd_changed
def
function
def test_cwd_changed(self, pytester: Pytester, monkeypatch) -> None: # Setup conditions for py's fspath trying to import pathlib on py34 # always (previously triggered via xdist only). # Ref: https://github.com/pytest-dev/py/pull/207 monkeypatch.syspath_prepend("") monkeypatc...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,394
syspath_prepend
ref
function
monkeypatch.syspath_prepend("")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,395
delitem
ref
function
monkeypatch.delitem(sys.modules, "pathlib", raising=False)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,397
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,412
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,413
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 passed in *"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,416
TestAssertionPass
def
class
test_option_default flag_on hook_on test_hook_call test_hook_call_with_parens test_hook_not_called_without_hookimpl test_hook_not_called_without_cmd_option
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,417
test_option_default
def
function
def test_option_default(self, pytester: Pytester) -> None: config = pytester.parseconfig() assert config.getini("enable_assertion_pass_hook") is _False @pytest.fixture def flag_on(self, pytester: Pytester): pytester.makeini("[pytest]\nenable_assertion_pass_hook = _True\n") @pyt...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,418
parseconfig
ref
function
config = pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,419
getini
ref
function
assert config.getini("enable_assertion_pass_hook") is False
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,422
flag_on
def
function
def flag_on(self, pytester: Pytester): pytester.makeini("[pytest]\nenable_assertion_pass_hook = _True\n") @pytest.fixture def hook_on(self, pytester: Pytester): pytester.makeconftest( """\ def pytest_assertion_pass(item, lineno, orig, expl): raise Exc...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,423
makeini
ref
function
pytester.makeini("[pytest]\nenable_assertion_pass_hook = True\n")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,426
hook_on
def
function
def hook_on(self, pytester: Pytester): pytester.makeconftest( """\ def pytest_assertion_pass(item, lineno, orig, expl): raise Exception("Assertion Passed: {} {} at line {}".format(orig, expl, lineno)) """ ) def test_hook_call(self, pytester: P...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,427
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,434
test_hook_call
def
function
def test_hook_call(self, pytester: Pytester, flag_on, hook_on) -> None: pytester.makepyfile( """\ def test_simple(): a=1 b=2 c=3 d=0 assert a+b == c+d # cover failing assertions with a messa...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,435
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,450
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,451
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,455
test_hook_call_with_parens
def
function
def test_hook_call_with_parens(self, pytester: Pytester, flag_on, hook_on) -> None: pytester.makepyfile( """\ def f(): return 1 def test(): assert f() """ ) result = pytester.runpytest() result.stdout.fnmatch_lines("*Ass...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,456
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,463
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,464
fnmatch_lines
ref
function
result.stdout.fnmatch_lines("*Assertion Passed: f() 1")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,466
test_hook_not_called_without_hookimpl
def
function
def test_hook_not_called_without_hookimpl( self, pytester: Pytester, monkeypatch, flag_on ) -> None: """Assertion pass should not be called (and hence formatting should not occur) if there is no hook declared for pytest_assertion_pass""" def raise_on_assertionpass(*_, **__): ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,472
raise_on_assertionpass
def
function
def raise_on_assertionpass(*_, **__): raise Exception("Assertion passed called when it shouldn't!") monkeypatch.setattr( _pytest.assertion.rewrite, "_call_assertion_pass", raise_on_assertionpass ) pytester.makepyfile( """\ def test_simple...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,479
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,490
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,491
assert_outcomes
ref
function
result.assert_outcomes(passed=1)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,493
test_hook_not_called_without_cmd_option
def
function
def test_hook_not_called_without_cmd_option( self, pytester: Pytester, monkeypatch ) -> None: """Assertion pass should not be called (and hence formatting should not occur) if there is no hook declared for pytest_assertion_pass""" def raise_on_assertionpass(*_, **__): ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,499
raise_on_assertionpass
def
function
def raise_on_assertionpass(*_, **__): raise Exception("Assertion passed called when it shouldn't!") monkeypatch.setattr( _pytest.assertion.rewrite, "_call_assertion_pass", raise_on_assertionpass ) pytester.makepyfile( """\ def test_simple...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,506
makeconftest
ref
function
pytester.makeconftest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,513
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,524
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,525
assert_outcomes
ref
function
result.assert_outcomes(passed=1)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,528
parametrize
ref
function
@pytest.mark.parametrize(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,532
param
ref
function
pytest.param(b"", {}, id="trivial"),
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,533
param
ref
function
pytest.param(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,538
param
ref
function
pytest.param(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,545
param
ref
function
pytest.param(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,552
param
ref
function
pytest.param(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,558
param
ref
function
pytest.param(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,566
param
ref
function
pytest.param(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,574
param
ref
function
pytest.param(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,581
param
ref
function
pytest.param(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,587
param
ref
function
pytest.param(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,595
param
ref
function
pytest.param(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,603
param
ref
function
pytest.param(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_assertrewrite.py
testing/test_assertrewrite.py
1,611
test_get_assertion_exprs
def
function
def test_get_assertion_exprs(src, expected) -> None: assert _get_assertion_exprs(src) == expected