Ejemplo n.º 1
0
def test_error_nonexistent_root_path(tmpdir):
    with pytest.raises(IOError):
        annex = Annex("file", tmpdir.join("dummy").strpath)
        annex.save_file("foo", BytesIO(b""))
Ejemplo n.º 2
0
 def annex_base(self, bucket_name):
     return Annex("s3", bucket_name)
Ejemplo n.º 3
0
 def annex_base(self, file_annex_path):
     return Annex("file", file_annex_path)
Ejemplo n.º 4
0
 def annex_base(self, bucket_name):
     return Annex("s3", bucket_name, max_content_length=1000)