Skip to content

Commit

Permalink
final training lines tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CNuge committed Mar 11, 2020
1 parent a378345 commit e62f55c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file modified alfie/tests/__pycache__/test_training.cpython-37-pytest-5.2.1.pyc
Binary file not shown.
7 changes: 7 additions & 0 deletions alfie/tests/test_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ def test_split():
assert test.shape == (5, 2)
assert list(test.index) == [15, 21, 7, 11, 8]

#resplit to test the print line
train, test = training.stratified_taxon_split(data, class_col = "phylum",
test_size = .2, silent = True, seed = 1738)


def test_sample_seq():

Expand All @@ -40,6 +44,9 @@ def test_sample_seq():

assert out2 == expected2

with pytest.raises(ValueError):
training.sample_seq("ATGA", min_size = 100)


def test_process_sequences():

Expand Down

0 comments on commit e62f55c

Please sign in to comment.