From 547c3d0736fb7b9fb259a60a6daee7d06e756042 Mon Sep 17 00:00:00 2001 From: mibe Date: Thu, 2 May 2024 10:59:54 +0100 Subject: [PATCH] #118 Fixed the factory integration test. --- tests/integration_tests/without_db/test_bucketfs_factory.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/integration_tests/without_db/test_bucketfs_factory.py b/tests/integration_tests/without_db/test_bucketfs_factory.py index 565e9aaa..bcf9dd6e 100644 --- a/tests/integration_tests/without_db/test_bucketfs_factory.py +++ b/tests/integration_tests/without_db/test_bucketfs_factory.py @@ -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)