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