Fixes wrong test.
This commit is contained in:
parent
0d53619e1f
commit
dbb73d6f8e
@ -22,12 +22,9 @@ class TestCitekeyGeneration(unittest.TestCase):
|
|||||||
|
|
||||||
def test_generated_key_is_unique(self):
|
def test_generated_key_is_unique(self):
|
||||||
repo = Repository()
|
repo = Repository()
|
||||||
repo.add_paper(fixtures.turing1950)
|
repo.citekeys = ['Turing1950', 'Doe2003']
|
||||||
repo.add_paper(fixtures.doe2013)
|
|
||||||
c = repo.get_free_citekey(fixtures.turing1950)
|
c = repo.get_free_citekey(fixtures.turing1950)
|
||||||
self.assertEqual(c, 'Turing1950a')
|
repo.citekeys.append('Turing1950a')
|
||||||
fixtures.turing1950.citekey = 'Turing1950a'
|
|
||||||
repo.add_paper(fixtures.turing1950)
|
|
||||||
c = repo.get_free_citekey(fixtures.turing1950)
|
c = repo.get_free_citekey(fixtures.turing1950)
|
||||||
self.assertEqual(c, 'Turing1950b')
|
self.assertEqual(c, 'Turing1950b')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user