Skip to content

Commit 9b3cba3

Browse files
committed
added test for _StorageSetupItem
1 parent 42a33c1 commit 9b3cba3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/test_schema.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,15 @@ def test_storage_fails_for_invalid_default_storage():
6868
},
6969
default="files",
7070
)
71+
72+
73+
def test_storage_fails_for_invalid_driver_option():
74+
with pytest.raises(ValueError, match="Driver Options must have a `key` option"):
75+
StorageSetup(
76+
storages={
77+
"cloud": {
78+
"driver": get_driver(Provider.GOOGLE_STORAGE),
79+
"options": {"secret": "key_secret"},
80+
}
81+
},
82+
)

0 commit comments

Comments
 (0)