From aadd91e27bd99750cf9da3144e98a9a767c68de4 Mon Sep 17 00:00:00 2001 From: Acribbs Date: Tue, 29 Oct 2024 10:36:43 +0000 Subject: [PATCH] pycodestyle errors --- tests/test_s3_decorators.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_s3_decorators.py b/tests/test_s3_decorators.py index 59f57093..633ea255 100644 --- a/tests/test_s3_decorators.py +++ b/tests/test_s3_decorators.py @@ -5,6 +5,7 @@ from cgatcore import pipeline as P from ruffus import Pipeline + class MockS3Client: def __init__(self): self.storage = {} @@ -18,6 +19,7 @@ def download_file(self, bucket, key, local_path): with open(local_path, 'w') as f: f.write(content) + class TestS3Decorators(unittest.TestCase): def setUp(self): self.mock_s3 = MockS3Client() @@ -63,7 +65,6 @@ def merge_files(infiles, outfile): self.assertIn("my-bucket/merged.txt", self.mock_s3.storage) self.assertEqual(self.mock_s3.storage["my-bucket/merged.txt"], "content1\ncontent2\n") - # Add more tests for s3_split, s3_originate, s3_follows as needed if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main()