From: "Michael R. Crusoe" <crusoe@debian.org>
Date: Mon, 7 Jan 2019 05:08:12 -0800
Subject: Make tests more independent

Forwarded: https://github.com/DataBiosphere/toil/pull/5305
Last-Update: 2025-05-05
---
 MANIFEST.in                                    |  9 +++++++++
 src/toil/test/docs/scripts/tutorial_staging.py | 10 ++++------
 2 files changed, 13 insertions(+), 6 deletions(-)

--- toil.orig/src/toil/test/utils/toilKillTest.py
+++ toil/src/toil/test/utils/toilKillTest.py
@@ -87,6 +87,7 @@
     """A set of test cases for "toil kill"."""
 
     @needs_cwl
+    @needs_aws_s3
     def test_cwl_toil_kill(self, tmp_path: Path) -> None:
         """Test "toil kill" on a CWL workflow with a 100 second sleep."""
         self._test_cwl_toil_kill(str(tmp_path / "job_store"))
--- toil.orig/src/toil/test/src/resourceTest.py
+++ toil/src/toil/test/src/resourceTest.py
@@ -158,8 +158,6 @@
         # Assert basic attributes and properties
         assert module.belongsToToil == shouldBelongToToil
         assert module.name == module_name
-        if shouldBelongToToil:
-            assert module.dirPath.endswith("/src")
 
         # Before the module is saved as a resource, localize() and globalize() are identity
         # methods. This should log.warnings.
--- toil.orig/src/toil/test/jobStores/jobStoreTest.py
+++ toil/src/toil/test/jobStores/jobStoreTest.py
@@ -1563,7 +1563,7 @@
         delete_s3_bucket(resource, bucket.name)
 
 
-# @needs_aws_s3
+@needs_aws_s3
 class InvalidAWSJobStoreTest(ToilTest):
     def testInvalidJobStoreName(self):
         from toil.jobStores.aws.jobStore import AWSJobStore
