Skip to content

Commit

Permalink
update: improve wenhao tests
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyz committed Apr 19, 2024
1 parent 1058e89 commit 87ea280
Show file tree
Hide file tree
Showing 4 changed files with 373 additions and 373 deletions.
2 changes: 1 addition & 1 deletion data/clean/f_750_wenhao.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_plot_titles(self):
plots = f_750(self.directory, self.pattern)
expected_titles = ['sales_data_2022.csv', 'sales_data_2021.csv']
plot_titles = [plot.get_title() for plot in plots]
self.assertEqual(plot_titles, expected_titles, "Plot titles should match the CSV filenames")
self.assertEqual(set(plot_titles), set(expected_titles), "Plot titles should match the CSV filenames")

def test_no_files_matched(self):
plots = f_750(self.directory, r"^no_match_\d{4}.csv")
Expand Down
Loading

0 comments on commit 87ea280

Please sign in to comment.