Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
DailyDreaming committed Dec 14, 2023
1 parent 76e2cd5 commit 42caa51
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/braingeneers/utils/common_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import common_utils # Updated import statement
import os
import tempfile
from pathlib import Path


class TestFileListFunction(unittest.TestCase):
Expand Down Expand Up @@ -32,9 +31,9 @@ def test_s3_no_files(self, mock_s3_client):

def test_local_files_exist(self):
with tempfile.TemporaryDirectory() as temp_dir:
# Create temporary files
Path(temp_dir, 'tempfile1.txt').touch()
Path(temp_dir, 'tempfile2.txt').touch()
for f in ['tempfile1.txt', 'tempfile2.txt']:
with open(os.path.join(temp_dir, f), 'w') as w:
w.write('nothing')

result = common_utils.file_list(temp_dir) # Updated to common_utils
# The result should contain two files with their details
Expand Down

0 comments on commit 42caa51

Please sign in to comment.