backend.tests module

class backend.tests.MaintenanceTest(methodName='runTest')[source]

Bases: backend.tests.PrefilledTest

classmethod setUpClass()[source]
test_cleanup_names()[source]
test_cleanup_researchers()[source]
test_create_publisher_aliases()[source]
test_name_initial()[source]
test_recompute_publisher_policies()[source]
test_refetch_containers()[source]
test_refetch_publishers()[source]
test_update_paper_statuses()[source]
class backend.tests.OrcidIntegrationTest(methodName='runTest')[source]

Bases: backend.tests.PaperSourceTest

check_papers(papers)[source]
classmethod setUpClass()[source]
test_bibtex_fallback()[source]
test_orcid_affiliation()[source]
test_previously_present_papers_are_attributed()[source]
class backend.tests.OrcidUnitTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_affiliate_author()[source]
class backend.tests.PaperMethodsTest(methodName='runTest')[source]

Bases: backend.tests.PrefilledTest

test_multiple_get_or_create()[source]
test_update_authors()[source]
class backend.tests.PaperSourceTest(methodName='runTest')[source]

Bases: backend.tests.PrefilledTest

check_papers(papers)[source]

Method that subclasses can reimplement to check the papers downloaded in test_fetch.

classmethod setUpClass()[source]
test_empty()[source]
test_fetch()[source]
class backend.tests.PrefilledTest(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

fixtures = [u'test_dump.json']
classmethod setUpTestData()[source]
classmethod tearDownClass()[source]
class backend.tests.RomeoTest(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

test_ampersand()[source]
test_closed()[source]
test_fetch_journal()[source]
test_fetch_publisher()[source]
test_open()[source]
test_openaccess()[source]
test_overescaped()[source]
test_perform_query()[source]
test_too_long()[source]
test_unicode()[source]
class backend.tests.TasksTest(methodName='runTest')[source]

Bases: backend.tests.PrefilledTest

test_fetch_everything_with_orcid()[source]
backend.tests.check_paper(asserter, paper)[source]

All sorts of tests to ensure a paper is well-behaved