We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22f19e3 commit 74fe141Copy full SHA for 74fe141
fs/test.py
@@ -1494,6 +1494,10 @@ def test_upload(self):
1494
with self.fs.open("foo", "rb") as f:
1495
data = f.read()
1496
self.assertEqual(data, b"bar")
1497
+
1498
+ # upload to non-existing path (/foo/bar)
1499
+ with self.assertRaises(errors.ResourceNotFound):
1500
+ self.fs.upload("/foo/bar/baz", bytes_file)
1501
1502
def test_upload_chunk_size(self):
1503
test_data = b"bar" * 128
0 commit comments