From dbb73d6f8e9a60eab088d7b832d7477f89586d6c Mon Sep 17 00:00:00 2001 From: Olivier Mangin Date: Wed, 19 Dec 2012 15:29:14 +0100 Subject: [PATCH] Fixes wrong test. --- tests/test_repo.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_repo.py b/tests/test_repo.py index 0cf8efa..371c7d9 100644 --- a/tests/test_repo.py +++ b/tests/test_repo.py @@ -22,12 +22,9 @@ class TestCitekeyGeneration(unittest.TestCase): def test_generated_key_is_unique(self): repo = Repository() - repo.add_paper(fixtures.turing1950) - repo.add_paper(fixtures.doe2013) + repo.citekeys = ['Turing1950', 'Doe2003'] c = repo.get_free_citekey(fixtures.turing1950) - self.assertEqual(c, 'Turing1950a') - fixtures.turing1950.citekey = 'Turing1950a' - repo.add_paper(fixtures.turing1950) + repo.citekeys.append('Turing1950a') c = repo.get_free_citekey(fixtures.turing1950) self.assertEqual(c, 'Turing1950b')