Initialisation du repository de Beta
This commit is contained in:
commit
14985f6dbb
9469 changed files with 1903273 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
import pytest
|
||||
|
||||
|
||||
class AbstractOpenTests:
|
||||
def test_open_exclusive(self, fs, fs_target):
|
||||
with fs.open(fs_target, "wb") as f:
|
||||
f.write(b"data")
|
||||
with fs.open(fs_target, "rb") as f:
|
||||
assert f.read() == b"data"
|
||||
with pytest.raises(FileExistsError):
|
||||
fs.open(fs_target, "xb")
|
||||
Loading…
Add table
Add a link
Reference in a new issue