Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI betas, Methpype full tutorial #7

Merged
merged 24 commits into from
Jul 23, 2019
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
Update test_array.py
  • Loading branch information
Marc Maxmeister authored Jul 23, 2019
commit c51148cbf43507410d55decd68cbcd8300ddddeb
15 changes: 7 additions & 8 deletions tests/models/test_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def test_inits_correctly(self):
class TestArrayType():
def test_enum_has_correct_values(self):
assert ArrayType.CUSTOM.value == 'custom'
assert ArrayType.ILLUMINA_450K.value == '27k'
assert ArrayType.ILLUMINA_450K.value == '450k'
assert ArrayType.ILLUMINA_EPIC.value == 'epic'
assert ArrayType.ILLUMINA_EPIC_PLUS.value == 'epic+'
Expand All @@ -32,15 +33,13 @@ def test_out_of_range_probe_counts_throws(self, capsys):
captured = capsys.readouterr()
assert captured.out == 'Unknown array type\n'

def test_27k_probe_counts_lower_bound_throws(self):
with pytest.raises(ValueError):
array_type = ArrayType.from_probe_count(54000)
assert array_type == ArrayType.ILLUMINA_27K
def test_27k_probe_counts_lower_bound(self):
array_type = ArrayType.from_probe_count(54000)
assert array_type == ArrayType.ILLUMINA_27K

def test_27k_probe_counts_upper_bound_throws(self):
with pytest.raises(ValueError):
array_type = ArrayType.from_probe_count(56000)
assert array_type == ArrayType.ILLUMINA_27K
def test_27k_probe_counts_upper_bound(self):
array_type = ArrayType.from_probe_count(56000)
assert array_type == ArrayType.ILLUMINA_27K

def test_450k_probe_counts_lower_bound(self):
array_type = ArrayType.from_probe_count(622000)
Expand Down