Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/wal-e/wal-e
/ test_no_error
Function
test_no_error
tests/test_files.py:8–14 ·
view source on GitHub ↗
(tmpdir)
Source
from the content-addressed store, hash-verified
6
7
8
def
test_no_error(tmpdir):
9
p = str(tmpdir.join(
'somefile'
))
10
with
files.DeleteOnError(p)
as
doe:
11
doe.f.write(b
'hello'
)
12
13
with
open(p,
'rb'
)
as
f:
14
assert f.read() == b
'hello'
15
16
17
def
test_clear_on_error(tmpdir):
Callers
nothing calls this directly
Calls
3
write
Method · 0.80
join
Method · 0.45
read
Method · 0.45
Tested by
no test coverage detected