Skip to content

Commit

Permalink
#118 Fixed the factory integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed May 2, 2024
1 parent b26fda1 commit 547c3d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/integration_tests/without_db/test_bucketfs_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,11 @@ def test_factory_http_not_verify(default_bucket_config):
assert file_name in bfs_location.list_files_in_bucketfs('')
content_back = bfs_location.download_from_bucketfs_to_string(file_name)
assert content_back == content

# In order to test the deletion we need to create another file,
# otherwise, deleting the only file invalidates the location.
file_name_copy = 'test_factory_http_default/geography_copy.fact'
bfs_location.upload_string_to_bucketfs(file_name_copy, content)
bfs_location.delete_file_in_bucketfs(file_name)
assert file_name not in bfs_location.list_files_in_bucketfs('')
bfs_location.delete_file_in_bucketfs(file_name_copy)

0 comments on commit 547c3d0

Please sign in to comment.