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_parseopt.py | testing/test_parseopt.py | 136 | addoption | ref | function | parser.addoption("--hello", action="store_true")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 137 | parse_known_and_unknown_args | ref | function | ns, unknown = parser.parse_known_and_unknown_args(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 144 | test_parse_will_set_default | def | function | def test_parse_will_set_default(self, parser: parseopt.Parser) -> None:
parser.addoption("--hello", dest="hello", default="x", action="store")
option = parser.parse([])
assert option.hello == "x"
del option.hello
parser.parse_setoption([], option)
assert option.hello ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 145 | addoption | ref | function | parser.addoption("--hello", dest="hello", default="x", action="store")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 146 | parse | ref | function | option = parser.parse([])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 149 | parse_setoption | ref | function | parser.parse_setoption([], option)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 152 | test_parse_setoption | def | function | def test_parse_setoption(self, parser: parseopt.Parser) -> None:
parser.addoption("--hello", dest="hello", action="store")
parser.addoption("--world", dest="world", default=42)
option = argparse.Namespace()
args = parser.parse_setoption(["--hello", "world"], option)
assert o... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 153 | addoption | ref | function | parser.addoption("--hello", dest="hello", action="store")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 154 | addoption | ref | function | parser.addoption("--world", dest="world", default=42)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 157 | parse_setoption | ref | function | args = parser.parse_setoption(["--hello", "world"], option)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 162 | test_parse_special_destination | def | function | def test_parse_special_destination(self, parser: parseopt.Parser) -> None:
parser.addoption("--ultimate-answer", type=int)
args = parser.parse(["--ultimate-answer", "42"])
assert args.ultimate_answer == 42
def test_parse_split_positional_arguments(self, parser: parseopt.Parser) -> None:... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 163 | addoption | ref | function | parser.addoption("--ultimate-answer", type=int)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 164 | parse | ref | function | args = parser.parse(["--ultimate-answer", "42"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 167 | test_parse_split_positional_arguments | def | function | def test_parse_split_positional_arguments(self, parser: parseopt.Parser) -> None:
parser.addoption("-R", action="store_true")
parser.addoption("-S", action="store_false")
args = parser.parse(["-R", "4", "2", "-S"])
assert getattr(args, parseopt.FILE_OR_DIR) == ["4", "2"]
args... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 168 | addoption | ref | function | parser.addoption("-R", action="store_true")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 169 | addoption | ref | function | parser.addoption("-S", action="store_false")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 170 | parse | ref | function | args = parser.parse(["-R", "4", "2", "-S"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 172 | parse | ref | function | args = parser.parse(["-R", "-S", "4", "2", "-R"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 176 | parse | ref | function | args = parser.parse(["-R", "4", "-S", "2"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 181 | test_parse_defaultgetter | def | function | def test_parse_defaultgetter(self) -> None:
def defaultget(option):
if not hasattr(option, "type"):
return
if option.type is int:
option.default = 42
elif option.type is str:
option.default = "world"
parser = parseo... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 182 | defaultget | def | function | def defaultget(option):
if not hasattr(option, "type"):
return
if option.type is int:
option.default = 42
elif option.type is str:
option.default = "world"
parser = parseopt.Parser(processopt=defaultget, _ispytest=_True... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 190 | Parser | ref | function | parser = parseopt.Parser(processopt=defaultget, _ispytest=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 191 | addoption | ref | function | parser.addoption("--this", dest="this", type=int, action="store")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 192 | addoption | ref | function | parser.addoption("--hello", dest="hello", type=str, action="store")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 193 | addoption | ref | function | parser.addoption("--no", dest="no", action="store_true")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 194 | parse | ref | function | option = parser.parse([])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 199 | test_drop_short_helper | def | function | def test_drop_short_helper(self) -> None:
parser = argparse.ArgumentParser(
formatter_class=parseopt.DropShorterLongHelpFormatter, allow_abbrev=_False
)
parser.add_argument(
"-t", "--twoword", "--duo", "--two-word", "--two", help="foo"
)
# throws error... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 203 | add_argument | ref | function | parser.add_argument(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 207 | add_argument | ref | function | parser.add_argument(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 210 | add_argument | ref | function | parser.add_argument("-s", action="store_true", help="single short")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 211 | add_argument | ref | function | parser.add_argument("--abc", "-a", action="store_true", help="bar")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 212 | add_argument | ref | function | parser.add_argument("--klm", "-k", "--kl-m", action="store_true", help="bar")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 213 | add_argument | ref | function | parser.add_argument(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 216 | add_argument | ref | function | parser.add_argument(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 219 | add_argument | ref | function | parser.add_argument(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 222 | add_argument | ref | function | parser.add_argument("files_and_dirs", nargs="*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 223 | parse_args | ref | function | args = parser.parse_args(["-k", "--duo", "hallo", "--exitfirst"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 229 | parse_args | ref | function | args = parser.parse_args(["--deux-mots"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 230 | raises | ref | function | with pytest.raises(AttributeError):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 233 | parse_args | ref | function | args = parser.parse_args(["file", "dir"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 236 | test_drop_short_0 | def | function | def test_drop_short_0(self, parser: parseopt.Parser) -> None:
parser.addoption("--funcarg", "--func-arg", action="store_true")
parser.addoption("--abc-def", "--abc-def", action="store_true")
parser.addoption("--klm-hij", action="store_true")
with pytest.raises(UsageError):
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 237 | addoption | ref | function | parser.addoption("--funcarg", "--func-arg", action="store_true")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 238 | addoption | ref | function | parser.addoption("--abc-def", "--abc-def", action="store_true")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 239 | addoption | ref | function | parser.addoption("--klm-hij", action="store_true")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 240 | raises | ref | function | with pytest.raises(UsageError):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 241 | parse | ref | function | parser.parse(["--funcarg", "--k"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 243 | test_drop_short_2 | def | function | def test_drop_short_2(self, parser: parseopt.Parser) -> None:
parser.addoption("--func-arg", "--doit", action="store_true")
args = parser.parse(["--doit"])
assert args.func_arg is _True
def test_drop_short_3(self, parser: parseopt.Parser) -> None:
parser.addoption("--func-arg", ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 244 | addoption | ref | function | parser.addoption("--func-arg", "--doit", action="store_true")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 245 | parse | ref | function | args = parser.parse(["--doit"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 248 | test_drop_short_3 | def | function | def test_drop_short_3(self, parser: parseopt.Parser) -> None:
parser.addoption("--func-arg", "--funcarg", "--doit", action="store_true")
args = parser.parse(["abcd"])
assert args.func_arg is _False
assert args.file_or_dir == ["abcd"]
def test_drop_short_help0(self, parser: parse... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 249 | addoption | ref | function | parser.addoption("--func-arg", "--funcarg", "--doit", action="store_true")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 250 | parse | ref | function | args = parser.parse(["abcd"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 254 | test_drop_short_help0 | def | function | def test_drop_short_help0(self, parser: parseopt.Parser) -> None:
parser.addoption("--func-args", "--doit", help="foo", action="store_true")
parser.parse([])
help = parser.optparser.format_help()
assert "--func-args, --doit foo" in help
# testing would be more helpful with all ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 255 | addoption | ref | function | parser.addoption("--func-args", "--doit", help="foo", action="store_true")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 256 | parse | ref | function | parser.parse([])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 257 | format_help | ref | function | help = parser.optparser.format_help()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 261 | test_drop_short_help1 | def | function | def test_drop_short_help1(self, parser: parseopt.Parser) -> None:
group = parser.getgroup("general")
group.addoption("--doit", "--func-args", action="store_true", help="foo")
group._addoption(
"-h",
"--help",
action="store_true",
dest="help",
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 262 | getgroup | ref | function | group = parser.getgroup("general")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 263 | addoption | ref | function | group.addoption("--doit", "--func-args", action="store_true", help="foo")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 264 | _addoption | ref | function | group._addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 271 | parse | ref | function | parser.parse(["-h"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 272 | format_help | ref | function | help = parser.optparser.format_help()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 275 | test_multiple_metavar_help | def | function | def test_multiple_metavar_help(self, parser: parseopt.Parser) -> None:
"""
Help text for options with a metavar tuple should display help
in the form "--preferences=value1 value2 value3" (#2004).
"""
group = parser.getgroup("general")
group.addoption(
"--p... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 280 | getgroup | ref | function | group = parser.getgroup("general")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 281 | addoption | ref | function | group.addoption(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 284 | _addoption | ref | function | group._addoption("-h", "--help", action="store_true", dest="help")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 285 | parse | ref | function | parser.parse(["-h"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 286 | format_help | ref | function | help = parser.optparser.format_help()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 290 | test_argcomplete | def | function | def test_argcomplete(pytester: Pytester, monkeypatch: MonkeyPatch) -> None:
try:
bash_version = subprocess.run(
["bash", "--version"],
stdout=subprocess.PIPE,
stderr=subprocess.DEVNULL,
check=_True,
universal_newlines=_True,
).stdout
ex... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 300 | skip | ref | function | pytest.skip("bash is not available")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 303 | skip | ref | function | pytest.skip("not a real bash")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 319 | setenv | ref | function | monkeypatch.setenv("_ARGCOMPLETE", "1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 320 | setenv | ref | function | monkeypatch.setenv("_ARGCOMPLETE_IFS", "\x0b")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 321 | setenv | ref | function | monkeypatch.setenv("COMP_WORDBREAKS", " \\t\\n\"\\'><=;|&(:")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 324 | setenv | ref | function | monkeypatch.setenv("COMP_LINE", "pytest " + arg)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 325 | setenv | ref | function | monkeypatch.setenv("COMP_POINT", str(len("pytest " + arg)))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 329 | skip | ref | function | pytest.skip("argcomplete not available")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 331 | skip | ref | function | pytest.skip(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 337 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["--funcargs", "--fulltrace"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 340 | setenv | ref | function | monkeypatch.setenv("COMP_LINE", "pytest " + arg)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 341 | setenv | ref | function | monkeypatch.setenv("COMP_POINT", str(len("pytest " + arg)))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_parseopt.py | testing/test_parseopt.py | 343 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["test_argcomplete", "test_argcomplete.d/"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 9 | TestPasteCapture | def | class | pastebinlist test_failed test_all test_non_ascii_paste_text |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 11 | pastebinlist | def | function | def pastebinlist(self, monkeypatch, request) -> List[Union[str, bytes]]:
pastebinlist: List[Union[str, bytes]] = []
plugin = request.config.pluginmanager.getplugin("pastebin")
monkeypatch.setattr(plugin, "create_new_paste", pastebinlist.append)
return pastebinlist
def test_faile... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 13 | getplugin | ref | function | plugin = request.config.pluginmanager.getplugin("pastebin")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 17 | test_failed | def | function | def test_failed(self, pytester: Pytester, pastebinlist) -> None:
testpath = pytester.makepyfile(
"""
import pytest
def test_pass() -> None:
pass
def test_fail():
assert 0
def test_skip():
pytest.skip(... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 18 | makepyfile | ref | function | testpath = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 29 | inline_run | ref | function | reprec = pytester.inline_run(testpath, "--pastebin=failed")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 33 | countoutcomes | ref | function | assert reprec.countoutcomes() == [1, 1, 1]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 35 | test_all | def | function | def test_all(self, pytester: Pytester, pastebinlist) -> None:
from _pytest.pytester import LineMatcher
testpath = pytester.makepyfile(
"""
import pytest
def test_pass():
pass
def test_fail():
assert 0
def te... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 38 | makepyfile | ref | function | testpath = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 49 | inline_run | ref | function | reprec = pytester.inline_run(testpath, "--pastebin=all", "-v")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 50 | countoutcomes | ref | function | assert reprec.countoutcomes() == [1, 1, 1]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 52 | decode | ref | function | contents = pastebinlist[0].decode("utf-8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 53 | LineMatcher | ref | function | matcher = LineMatcher(contents.splitlines())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 54 | fnmatch_lines | ref | function | matcher.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 63 | test_non_ascii_paste_text | def | function | def test_non_ascii_paste_text(self, pytester: Pytester, pastebinlist) -> None:
"""Make sure that text which contains non-ascii characters is pasted
correctly. See #1219.
"""
pytester.makepyfile(
test_unicode="""\
def test():
assert '☺' == 1
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 67 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 73 | runpytest | ref | function | result = pytester.runpytest("--pastebin=all")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_pastebin.py | testing/test_pastebin.py | 75 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.