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')