Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Jun 26, 2020
1 parent f28ecf1 commit af0984b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hoomd/cite.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def _ensure_global_bib():
if hoomd.context.bib is None:
hoomd.context.bib = bibliography()
# the hoomd bibliography always includes the following citations
hoomd_base = article(cite_key = 'anderson2020',
hoomd_base = article(cite_key = 'Anderson2020',
author = ['J A Anderson','J Glaser','S C Glotzer'],
title = 'HOOMD-blue: A Python package for high-performance molecular dynamics and hard particle Monte Carlo simulations',
journal = 'Computational Materials Science',
Expand Down
5 changes: 2 additions & 3 deletions hoomd/md/test-py/test_cite.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ def test_global_bib(self):

# check that it has two entries, the default HOOMD citations, and that the keys match what they should be
print(hoomd.context.bib.entries)
self.assertEqual(len(hoomd.context.bib.entries), 2)
self.assertIn('anderson2008', hoomd.context.bib.entries)
self.assertIn('glaser2015', hoomd.context.bib.entries)
self.assertEqual(len(hoomd.context.bib.entries), 1)
self.assertIn('Anderson2020', hoomd.context.bib.entries)

# stringify the global bibliography (basically, save the pointer)
s1 = str(hoomd.context.bib)
Expand Down

0 comments on commit af0984b

Please sign in to comment.