# deposit.hal.tests module¶

class deposit.hal.tests.AOFRTest(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

classmethod setUpClass()[source]
test_generate_metadata_doi()[source]
class deposit.hal.tests.HALProtocolTest(*args, **kwargs)[source]
classmethod setUpClass()[source]
test_bad_journal_article()[source]

Submit something that pretends to be a journal article, but for which we fail to find publication metadata. The interface should fall back on something lighter.

test_get_new_status()[source]
test_journal_article()[source]

Submit a journal article

test_keywords()[source]

Keywords are mandatory

test_lics()[source]

Submit a paper from LICS (type: conference-proceedings)

test_lncs()[source]

Same as test_lncs but with only one author

test_lncs_many_authors(*args, **kwargs)[source]

Submit a paper from LNCS (type: book-chapter). This fails with the default test account because it does not have the right to deposit with only one affiliation.

test_on_behalf_of()[source]
test_paper_already_in_hal()[source]
test_paper_already_in_hal_but_not_in_dissemin()[source]

In this case, Dissemin missed the paper on HAL (for some reason) and so the deposit interface was enabled. But HAL refuses the deposit! We have to give a good error message to the user.

test_predict_topic()[source]
test_preprint()[source]

Submit a preprint

test_refresh_deposit_status()[source]
test_topic_set_to_other()[source]

Submit a journal article with “OTHER” as topic, which is forbidden by HAL