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_parseopt.py
testing/test_parseopt.py
263
addoption
ref
function
group.addoption("--doit", "--func-args", action="store_true", help="foo")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
264
_addoption
ref
function
group._addoption(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
271
parse
ref
function
parser.parse(["-h"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
272
format_help
ref
function
help = parser.optparser.format_help()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
280
getgroup
ref
function
group = parser.getgroup("general")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
281
addoption
ref
function
group.addoption(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
284
_addoption
ref
function
group._addoption("-h", "--help", action="store_true", dest="help")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
285
parse
ref
function
parser.parse(["-h"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
286
format_help
ref
function
help = parser.optparser.format_help()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
300
skip
ref
function
pytest.skip("bash is not available")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
303
skip
ref
function
pytest.skip("not a real bash")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
319
setenv
ref
function
monkeypatch.setenv("_ARGCOMPLETE", "1")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
320
setenv
ref
function
monkeypatch.setenv("_ARGCOMPLETE_IFS", "\x0b")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
321
setenv
ref
function
monkeypatch.setenv("COMP_WORDBREAKS", " \\t\\n\"\\'><=;|&(:")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
324
setenv
ref
function
monkeypatch.setenv("COMP_LINE", "pytest " + arg)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
325
setenv
ref
function
monkeypatch.setenv("COMP_POINT", str(len("pytest " + arg)))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
329
skip
ref
function
pytest.skip("argcomplete not available")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
331
skip
ref
function
pytest.skip(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
337
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["--funcargs", "--fulltrace"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
340
setenv
ref
function
monkeypatch.setenv("COMP_LINE", "pytest " + arg)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
341
setenv
ref
function
monkeypatch.setenv("COMP_POINT", str(len("pytest " + arg)))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_parseopt.py
testing/test_parseopt.py
343
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["test_argcomplete", "test_argcomplete.d/"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
9
TestPasteCapture
def
class
pastebinlist test_failed test_all test_non_ascii_paste_text
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
13
getplugin
ref
function
plugin = request.config.pluginmanager.getplugin("pastebin")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
18
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
29
inline_run
ref
function
reprec = pytester.inline_run(testpath, "--pastebin=failed")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
33
countoutcomes
ref
function
assert reprec.countoutcomes() == [1, 1, 1]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
38
makepyfile
ref
function
testpath = pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
49
inline_run
ref
function
reprec = pytester.inline_run(testpath, "--pastebin=all", "-v")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
50
countoutcomes
ref
function
assert reprec.countoutcomes() == [1, 1, 1]
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
52
decode
ref
function
contents = pastebinlist[0].decode("utf-8")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
53
LineMatcher
ref
function
matcher = LineMatcher(contents.splitlines())
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
54
fnmatch_lines
ref
function
matcher.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
67
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
73
runpytest
ref
function
result = pytester.runpytest("--pastebin=all")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
75
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
85
TestPaste
def
class
pastebin mocked_urlopen_fail mocked_urlopen_invalid mocked_urlopen test_pastebin_invalid_url test_pastebin_http_error test_create_new_paste test_create_new_paste_failure
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
87
pastebin
def
function
def pastebin(self, request): return request.config.pluginmanager.getplugin("pastebin") @pytest.fixture def mocked_urlopen_fail(self, monkeypatch: MonkeyPatch): """Monkeypatch the actual urlopen call to emulate a HTTP Error 400.""" calls = [] import urllib.error impo...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
88
getplugin
ref
function
return request.config.pluginmanager.getplugin("pastebin")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
91
mocked_urlopen_fail
def
function
def mocked_urlopen_fail(self, monkeypatch: MonkeyPatch): """Monkeypatch the actual urlopen call to emulate a HTTP Error 400.""" calls = [] import urllib.error import urllib.request def mocked(url, data): calls.append((url, data)) raise urllib.error.H...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
98
mocked
def
function
def mocked(url, data): calls.append((url, data)) raise urllib.error.HTTPError(url, 400, "Bad request", {}, io.BytesIO()) monkeypatch.setattr(urllib.request, "urlopen", mocked) return calls @pytest.fixture def mocked_urlopen_invalid(self, monkeypatch: MonkeyPatch...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
106
mocked_urlopen_invalid
def
function
def mocked_urlopen_invalid(self, monkeypatch: MonkeyPatch): """Monkeypatch the actual urlopen calls done by the internal plugin function that connects to bpaste service, but return a url in an unexpected format.""" calls = [] def mocked(url, data): calls.append((...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
112
mocked
def
function
def mocked(url, data): calls.append((url, data)) raise urllib.error.HTTPError(url, 400, "Bad request", {}, io.BytesIO()) monkeypatch.setattr(urllib.request, "urlopen", mocked) return calls @pytest.fixture def mocked_urlopen_invalid(self, monkeypatch: MonkeyPatch...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
115
DummyFile
def
class
read read
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
116
read
def
function
def read(self): # part of html of a normal response return b'View <a href="/invalid/3c0c6750bd">raw</a>.' return DummyFile() import urllib.request monkeypatch.setattr(urllib.request, "urlopen", mocked) return calls @pyte...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
120
DummyFile
ref
function
return DummyFile()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
128
mocked_urlopen
def
function
def mocked_urlopen(self, monkeypatch: MonkeyPatch): """Monkeypatch the actual urlopen calls done by the internal plugin function that connects to bpaste service.""" calls = [] def mocked(url, data): calls.append((url, data)) class DummyFile: ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
133
mocked
def
function
def mocked(url, data): calls.append((url, data)) raise urllib.error.HTTPError(url, 400, "Bad request", {}, io.BytesIO()) monkeypatch.setattr(urllib.request, "urlopen", mocked) return calls @pytest.fixture def mocked_urlopen_invalid(self, monkeypatch: MonkeyPatch...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
136
DummyFile
def
class
read read
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
137
read
def
function
def read(self): # part of html of a normal response return b'View <a href="/invalid/3c0c6750bd">raw</a>.' return DummyFile() import urllib.request monkeypatch.setattr(urllib.request, "urlopen", mocked) return calls @pyte...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
141
DummyFile
ref
function
return DummyFile()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
148
test_pastebin_invalid_url
def
function
def test_pastebin_invalid_url(self, pastebin, mocked_urlopen_invalid) -> None: result = pastebin.create_new_paste(b"full-paste-contents") assert ( result == "bad response: invalid format ('View <a href=\"/invalid/3c0c6750bd\">raw</a>.')" ) assert len(mocked_ur...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
149
create_new_paste
ref
function
result = pastebin.create_new_paste(b"full-paste-contents")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
156
test_pastebin_http_error
def
function
def test_pastebin_http_error(self, pastebin, mocked_urlopen_fail) -> None: result = pastebin.create_new_paste(b"full-paste-contents") assert result == "bad response: HTTP Error 400: Bad request" assert len(mocked_urlopen_fail) == 1 def test_create_new_paste(self, pastebin, mocked_urlope...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
157
create_new_paste
ref
function
result = pastebin.create_new_paste(b"full-paste-contents")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
161
test_create_new_paste
def
function
def test_create_new_paste(self, pastebin, mocked_urlopen) -> None: result = pastebin.create_new_paste(b"full-paste-contents") assert result == "https://bpaste.net/show/3c0c6750bd" assert len(mocked_urlopen) == 1 url, data = mocked_urlopen[0] assert type(data) is bytes ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
162
create_new_paste
ref
function
result = pastebin.create_new_paste(b"full-paste-contents")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
169
decode
ref
function
assert "lexer=%s" % lexer in data.decode()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
170
decode
ref
function
assert "code=full-paste-contents" in data.decode()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
171
decode
ref
function
assert "expiry=1week" in data.decode()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
173
test_create_new_paste_failure
def
function
def test_create_new_paste_failure(self, pastebin, monkeypatch: MonkeyPatch) -> None: import io import urllib.request def response(url, data): stream = io.BytesIO(b"something bad occurred") return stream monkeypatch.setattr(urllib.request, "urlopen", response...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
177
response
def
function
def response(url, data): stream = io.BytesIO(b"something bad occurred") return stream monkeypatch.setattr(urllib.request, "urlopen", response) result = pastebin.create_new_paste(b"full-paste-contents") assert result == "bad response: invalid format ('something ba...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pastebin.py
testing/test_pastebin.py
182
create_new_paste
ref
function
result = pastebin.create_new_paste(b"full-paste-contents")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
29
TestFNMatcherPort
def
class
test_matching test_matching_abspath test_not_matching
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
39
parametrize
ref
function
@pytest.mark.parametrize(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
53
test_matching
def
function
def test_matching(self, pattern: str, path: str) -> None: assert fnmatch_ex(pattern, path) def test_matching_abspath(self) -> None: abspath = os.path.abspath(os.path.join("tests/foo.py")) assert fnmatch_ex("tests/foo.py", abspath) @pytest.mark.parametrize( "pattern, path", ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
54
fnmatch_ex
ref
function
assert fnmatch_ex(pattern, path)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
56
test_matching_abspath
def
function
def test_matching_abspath(self) -> None: abspath = os.path.abspath(os.path.join("tests/foo.py")) assert fnmatch_ex("tests/foo.py", abspath) @pytest.mark.parametrize( "pattern, path", [ ("*.py", "foo.pyc"), ("*.py", "foo/foo.pyc"), ("tests/*.py...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
58
fnmatch_ex
ref
function
assert fnmatch_ex("tests/foo.py", abspath)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
60
parametrize
ref
function
@pytest.mark.parametrize(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
74
test_not_matching
def
function
def test_not_matching(self, pattern: str, path: str) -> None: assert not fnmatch_ex(pattern, path)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
75
fnmatch_ex
ref
function
assert not fnmatch_ex(pattern, path)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
78
TestImportPath
def
class
path1 setuptestfs test_smoke_test test_renamed_dir_creates_mismatch test_messy_name test_dir test_a test_b test_c test_d test_import_after test_check_filepath_consistency test_issue131_on__init__ test_ensuresyspath_append test_invalid_path simple_module test_importmode_importlib test_importmode_twice_is_different_modul...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
86
fixture
ref
function
@pytest.fixture(scope="session")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
87
path1
def
function
def path1(self, tmp_path_factory: TempPathFactory) -> Generator[Path, None, None]: path = tmp_path_factory.mktemp("path") self.setuptestfs(path) yield path assert path.joinpath("samplefile").exists() def setuptestfs(self, path: Path) -> None: # print "setting up test fs ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
88
mktemp
ref
function
path = tmp_path_factory.mktemp("path")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
89
setuptestfs
ref
function
self.setuptestfs(path)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
91
joinpath
ref
function
assert path.joinpath("samplefile").exists()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
93
setuptestfs
def
function
def setuptestfs(self, path: Path) -> None: # print "setting up test fs for", repr(path) samplefile = path / "samplefile" samplefile.write_text("samplefile\n") execfile = path / "execfile" execfile.write_text("x=42") execfilepy = path / "execfile.py" execfile...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
96
write_text
ref
function
samplefile.write_text("samplefile\n")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
99
write_text
ref
function
execfile.write_text("x=42")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
102
write_text
ref
function
execfilepy.write_text("x=42")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
105
joinpath
ref
function
path.joinpath("samplepickle").write_bytes(pickle.dumps(d, 1))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
105
write_bytes
ref
function
path.joinpath("samplepickle").write_bytes(pickle.dumps(d, 1))
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
108
mkdir
ref
function
sampledir.mkdir()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
109
joinpath
ref
function
sampledir.joinpath("otherfile").touch()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
109
touch
ref
function
sampledir.joinpath("otherfile").touch()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
112
mkdir
ref
function
otherdir.mkdir()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
113
joinpath
ref
function
otherdir.joinpath("__init__.py").touch()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
113
touch
ref
function
otherdir.joinpath("__init__.py").touch()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
116
write_text
ref
function
module_a.write_text("from .b import stuff as result\n")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
118
write_text
ref
function
module_b.write_text('stuff="got it"\n')
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
120
write_text
ref
function
module_c.write_text(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_pathlib.py
testing/test_pathlib.py
130
write_text
ref
function
module_d.write_text(