From 2835d769037b901604db4e2ce9c7d659660eee15 Mon Sep 17 00:00:00 2001 From: Hillel Arnold Date: Wed, 30 Oct 2024 14:37:00 -0400 Subject: [PATCH] clean up fixtures --- sip_assembly/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sip_assembly/tests.py b/sip_assembly/tests.py index d59f1a1..59f988c 100644 --- a/sip_assembly/tests.py +++ b/sip_assembly/tests.py @@ -405,7 +405,7 @@ def test_start_package(self): n = 1 for origin in settings.ARCHIVEMATICA_ORIGINS: current_bag_name = f"{bag_name}_{n}" - current_bag_path = (join(integration_fixture_dir, current_bag_name)) + current_bag_path = join(integration_fixture_dir, current_bag_name) shutil.copytree(transfer_path, current_bag_path) client = ArchivematicaClientMixin().get_client(origin) client.processing_config = 'integration_test' @@ -422,3 +422,4 @@ def test_start_package(self): started = client.create_package() self.assertIsInstance(started, dict) n += 1 + shutil.rmtree(current_bag_path)