Skip to content
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,9 @@ def test_unified_format_validates_sample_consistency(self):
with tempfile.TemporaryDirectory() as tmpdir:
bad_file = os.path.join(tmpdir, "inconsistent_design.tsv")
with open(bad_file, "w") as f:
f.write("Filename\tSample\tFraction\tCondition\tBioReplicate\n")
f.write("file1.raw\t1\t1\tCondA\t1\n")
f.write("file2.raw\t1\t1\tCondB\t2\n") # Same Sample, different Condition
f.write("Filename\tSample\tFraction\tCondition\tBioReplicate\tLabel\tLabelType\n")
f.write("file1.raw\t1\t1\tCondA\t1\tlabel free sample\tlabel free\n")
f.write("file2.raw\t1\t1\tCondB\t2\tlabel free sample\tlabel free\n") # Same Sample, different Condition
with pytest.raises(ValueError, match="Inconsistent"):
get_exp_design_dfs(bad_file)

Expand Down