Skip to content

Commit

Permalink
refactor: update obsolute function name in test_csv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
furkan-bilgin committed Oct 12, 2024
1 parent d8607b7 commit ccfeeab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def setUp(self):
self.config = MagicMock()
self.store = DAQJobStoreCSV(self.config)

@patch("daq.store.csv.add_date_to_file_name", return_value="test.csv")
@patch("daq.store.csv.modify_file_path", return_value="test.csv")
@patch("builtins.open", new_callable=mock_open)
@patch("os.path.exists", return_value=False)
@patch("pathlib.Path.touch")
Expand All @@ -39,7 +39,7 @@ def test_handle_message_new_file(
file = self.store._open_csv_files["test.csv"]
self.assertEqual(file.write_queue.qsize(), 3) # 1 header + 2 rows

@patch("daq.store.csv.add_date_to_file_name", return_value="test.csv")
@patch("daq.store.csv.modify_file_path", return_value="test.csv")
@patch("builtins.open", new_callable=mock_open)
@patch("os.path.exists", return_value=True)
def test_handle_message_existing_file(self, mock_exists, mock_open, mock_add_date):
Expand Down

0 comments on commit ccfeeab

Please sign in to comment.