Skip to content

Commit

Permalink
ensure all globs are sorted and pray that the tests pass please just …
Browse files Browse the repository at this point in the history
…pass you miserable things
  • Loading branch information
jethror1 committed Nov 21, 2024
1 parent 2e5bcf2 commit c6dc895
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_value_error_raised_when_error_raised_from_pd_read_csv(

class TestReadAllCopyRatioFiles(unittest.TestCase):
def test_reading_all_files_to_dataframe_correct(self):
copy_ratio_files = glob(f"{TEST_DATA_DIR}/*copy_ratios.tsv")
copy_ratio_files = sorted(glob(f"{TEST_DATA_DIR}/*copy_ratios.tsv"))

copy_ratio_df = read_all_copy_ratio_files(
copy_ratio_files=copy_ratio_files
Expand Down Expand Up @@ -215,7 +215,7 @@ def test_value_error_raised_when_file_with_different_intervals_parsed(
) as fh:
fh.write("\n".join(sample_1_contents[:-2]))

copy_ratio_files = glob(f"{TEST_DATA_DIR}/*copy_ratios.tsv")
copy_ratio_files = sorted(glob(f"{TEST_DATA_DIR}/*copy_ratios.tsv"))
copy_ratio_files.append(diff_intervals_tsv)

with self.subTest():
Expand All @@ -232,7 +232,7 @@ class TestCalculateMeanAndStdDev(unittest.TestCase):

def setUp(self):
self.copy_ratio_df = read_all_copy_ratio_files(
glob(f"{TEST_DATA_DIR}/*copy_ratios.tsv")
sorted(glob(f"{TEST_DATA_DIR}/*copy_ratios.tsv"))
)
self.copy_ratio_df = calculate_mean_and_std_dev(
copy_ratio_df=self.copy_ratio_df
Expand Down Expand Up @@ -333,7 +333,7 @@ def test_value_error_raised_if_only_one_sample_column_present(self):
class TestWriteRunLevelBedFile(unittest.TestCase):
def setUp(self):
self.copy_ratio_df = read_all_copy_ratio_files(
glob(f"{TEST_DATA_DIR}/*copy_ratios.tsv")
sorted(glob(f"{TEST_DATA_DIR}/*copy_ratios.tsv"))
)
self.copy_ratio_df = calculate_mean_and_std_dev(
copy_ratio_df=self.copy_ratio_df
Expand Down

0 comments on commit c6dc895

Please sign in to comment.