Skip to content

Commit

Permalink
pycodestyle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Acribbs committed Oct 29, 2024
1 parent 7b0e06a commit aadd91e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_s3_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from cgatcore import pipeline as P
from ruffus import Pipeline


class MockS3Client:
def __init__(self):
self.storage = {}
Expand All @@ -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()
Expand Down Expand Up @@ -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()
unittest.main()

0 comments on commit aadd91e

Please sign in to comment.