Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test
  • Loading branch information
nathanthorpe committed Jul 31, 2025
commit a9a0fed436afeb30fa1d4b51faa5e9b1e4c7ddf9
8 changes: 4 additions & 4 deletions tests/test_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@

class TestPreprocess(unittest.TestCase):
def test_wide_samplesheet_1(self):
ds = PreprocessDataset(DATA_PATH + '/example_data_1')
ds = PreprocessDataset.from_path(DATA_PATH + '/example_data_1')
df = ds.wide_samplesheet()

expected_df = pandas.read_csv(DATA_PATH + '/example_data_1/expected_wide.csv')

self.assertEqual(
df.sort_index(axis=1).to_csv(index=None),
expected_df.sort_index(axis=1).to_csv(index=None)
expected_df.sort_index(axis=1).to_csv(index=False)
)

def test_wide_samplesheet_2(self):
ds = PreprocessDataset(DATA_PATH + '/example_data_2')
ds = PreprocessDataset.from_path(DATA_PATH + '/example_data_2')
df = ds.wide_samplesheet()

expected_df = pandas.read_csv(DATA_PATH + '/example_data_2/expected_wide.csv')

self.assertEqual(
df.sort_index(axis=1).to_csv(index=None),
expected_df.sort_index(axis=1).to_csv(index=None)
expected_df.sort_index(axis=1).to_csv(index=False)
)


Expand Down
Loading