Skip to content

Commit

Permalink
TST: add clarifying comment re: biocore#129 test
Browse files Browse the repository at this point in the history
  • Loading branch information
fedarko committed Jun 16, 2020
1 parent b1d51ff commit 8a9b4fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/python/test_taxonomy_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ def test_split_taxonomy_leading_trailing_whitespace(self):
funky_fm.loc["f3", "Taxonomy"] = (
" " + funky_fm.loc["f3", "Taxonomy"].replace(";", " ;") + " "
)
# This really should never happen in practice, since I believe that
# QIIME 2's taxonomy format stores its data as a TSV file. Also having
# a tab character in a taxonomy annotation sounds pretty sketchy to me.
# However, we may as well test that -- if for example QIIME 2 switches
# to CSV instead of TSV -- leading/trailing tabs are still treated as
# leading/trailing whitespace and are therefore ignored.
funky_fm.loc["f4", "Taxonomy"] = (
" \t " + funky_fm.loc["f4", "Taxonomy"] + "\t"
)
Expand Down

0 comments on commit 8a9b4fb

Please sign in to comment.