chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
from e2b import Sandbox
|
||||
|
||||
|
||||
def test_remove_file(sandbox: Sandbox):
|
||||
filename = "test_remove.txt"
|
||||
content = "This file will be removed."
|
||||
|
||||
sandbox.files.write(filename, content)
|
||||
|
||||
sandbox.files.remove(filename)
|
||||
|
||||
exists = sandbox.files.exists(filename)
|
||||
assert not exists
|
||||
|
||||
|
||||
def test_remove_non_existing_file(sandbox):
|
||||
filename = "non_existing_file.txt"
|
||||
sandbox.files.remove(filename)
|
||||
Reference in New Issue
Block a user