Skip to content

Commit

Permalink
add tags and files to test bibtex
Browse files Browse the repository at this point in the history
  • Loading branch information
perrette committed Apr 28, 2023
1 parent 6d5672a commit 444af61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
bibtex = """@article{Perrette_2011,
author = {M. Perrette and A. Yool and G. D. Quartly and E. E. Popova},
doi = {10.5194/bg-8-515-2011},
file = {article.pdf:pdf; supplement.mov:mov},
journal = {Biogeosciences},
keywords = {kiwi, ocean},
link = {https://doi.org/10.5194%2Fbg-8-515-2011},
month = {feb},
number = {2},
Expand All @@ -26,7 +28,7 @@ class FormattingTest(ListTest):

def test_format(self):
out = self.papers(f'list -l', sp_cmd='check_output')
self.assertEqual(strip_colors(out), "Perrette_2011: Near-ubiquity of ice-edge blooms in the Arctic (doi:10.5194/bg-8-515-2011)")
self.assertEqual(strip_colors(out), "Perrette_2011: Near-ubiquity of ice-edge blooms in the Arctic (doi:10.5194/bg-8-515-2011, files:2, kiwi | ocean)")

out = self.papers(f'list --key-only', sp_cmd='check_output')
self.assertEqual(out, "Perrette_2011")
Expand Down

0 comments on commit 444af61

Please sign in to comment.