Skip to content

Commit

Permalink
enable create_if_not_exists test
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ11teen committed May 16, 2021
1 parent 5073783 commit 22a73fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/tests/1_storageproviders.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@

class StorageProviderTests:
def test_create_if_not_exists(self, storage_provider):
# TODO: Ensure initally storage does not exist:
# assert storage_provider.create_if_not_exists() == False
# The pytest arg "test_container_id",
# combined with the this being the first test run for each provider,
# ensures that initally storage does not exist,
# So we expect False for the first call and True for the second:
assert storage_provider.create_if_not_exists() == False
assert storage_provider.create_if_not_exists() == True

def test_data_is_stored(self, storage_provider):
Expand Down

0 comments on commit 22a73fe

Please sign in to comment.