def test_unknown_annex_from_env(monkeypatch): monkeypatch.setenv('FLASK_ANNEX_STORAGE', 'unknown') with pytest.raises(ValueError): Annex.from_env('FLASK_ANNEX')
def annex_base(self, monkeypatch, file_annex_path): monkeypatch.setenv('FLASK_ANNEX_STORAGE', 'file') monkeypatch.setenv('FLASK_ANNEX_FILE_ROOT_PATH', file_annex_path) return Annex.from_env('FLASK_ANNEX')
def annex_base(self, monkeypatch, file_annex_path): monkeypatch.setenv("FLASK_ANNEX_STORAGE", "file") monkeypatch.setenv("FLASK_ANNEX_FILE_ROOT_PATH", file_annex_path) return Annex.from_env("FLASK_ANNEX")
def annex_base(self, monkeypatch, bucket_name): monkeypatch.setenv("FLASK_ANNEX_STORAGE", "s3") monkeypatch.setenv("FLASK_ANNEX_S3_BUCKET_NAME", bucket_name) monkeypatch.setenv("FLASK_ANNEX_S3_REGION", "us-east-1") return Annex.from_env("FLASK_ANNEX")