コード例 #1
0
def test_literature_create_article_journal_with_proceeding(login):
    input_data = literature_submission_form.InputData()
    input_data.add_basic_info(
        abstract='Lorem ipsum dolor sit amet, consetetur sadipscing elitr.',
        title='My Title For Test',
        language='ru',
        title_translation='My Title was in Russian',
        collaboration='This is a collaboration',
        experiment='This is an experiment',
        authors=(
            {
                'name': 'Barry White',
                'affiliation': 'Wisconsin U., Madison'
            },
            {
                'name': 'James Brown',
                'affiliation': 'CERN'
            },
        ),
        report_numbers=('100', '101'),
        subjects=('Accelerators', 'Computing'),
    )
    input_data.add_links(pdf_url='http://example.com/a-pdf')
    input_data.add_references_comments(
        references='references',
        extra_comments='comments about the document',
    )
    input_data.add_journal_info(
        journal_title='europe',
        volume='Volume',
        issue='issue',
        year='2014',
        page_range='100-110',
        conf_name='This Conference',
    )
    input_data.add_proceedings(nonpublic_note='This proceedings')

    literature_submission_form.go_to()

    literature_submission_form.submit_journal_article_with_proceeding(
        input_data).assert_has_no_errors()
    _accept_and_complete(input_data)
コード例 #2
0
def test_literature_create_book(login):
    input_data = literature_submission_form.InputData()
    input_data.add_basic_info(
        abstract='Lorem ipsum dolor sit amet, consetetur sadipscing elitr.',
        title='My Title For Test',
        language='ru',
        title_translation='My Title was in Russian',
        collaboration='This is a collaboration',
        experiment='This is an experiment',
        authors=(
            {
                'name': 'Barry White',
                'affiliation': 'Wisconsin U., Madison'
            },
            {
                'name': 'James Brown',
                'affiliation': 'CERN'
            },
        ),
        report_numbers=('100', '101'),
        subjects=('Accelerators', 'Computing'),
    )
    input_data.add_links(pdf_url='http://example.com/a-pdf')
    input_data.add_references_comments(
        references='references',
        extra_comments='comments about the document',
    )
    input_data.add_book_info(
        book_title='Astrowars',
        book_volume='Andromeda',
        publication_date='2001-01-01',
        publication_place='Oxford',
        publisher_name='Oxford University',
    )

    literature_submission_form.go_to()

    literature_submission_form.submit_book(input_data).assert_has_no_errors()
    _accept_and_complete(input_data)
コード例 #3
0
def test_literature_create_thesis(login):
    input_data = literature_submission_form.InputData()
    input_data.add_basic_info(
        abstract='Lorem ipsum dolor sit amet, consetetur sadipscing elitr.',
        title='My Title For Test',
        language='ru',
        title_translation='My Title was in Russian',
        collaboration='This is a collaboration',
        experiment='This is an experiment',
        authors=(
            {
                'name': 'Barry White',
                'affiliation': 'Wisconsin U., Madison'
            },
            {
                'name': 'James Brown',
                'affiliation': 'CERN'
            },
        ),
        report_numbers=('100', '101'),
        subjects=('Accelerators', 'Computing'),
    )
    input_data.add_links(pdf_url='http://example.com/a-pdf')
    input_data.add_references_comments(
        references='references',
        extra_comments='comments about the document',
    )
    input_data.add_thesis_info(
        supervisor_name='Mister Yellow',
        supervisor_affiliation='CERN',
        thesis_date='2001-01-01',
        defense_date='2002-02-01',
        degree_type='bachelor',
        institution='Wisconsin U., Madison',
    )

    literature_submission_form.go_to()
    literature_submission_form.submit_thesis(input_data).assert_has_no_errors()
    _accept_and_complete(input_data)
コード例 #4
0
def test_literature_create_chapter(login):
    input_data = literature_submission_form.InputData()
    input_data.add_basic_info(
        abstract='Lorem ipsum dolor sit amet, consetetur sadipscing elitr.',
        title='My Title For Test',
        language='ru',
        title_translation='My Title was in Russian',
        collaboration='This is a collaboration',
        experiment='This is an experiment',
        authors=(
            {
                'name': 'Barry White',
                'affiliation': 'Wisconsin U., Madison'
            },
            {
                'name': 'James Brown',
                'affiliation': 'CERN'
            },
        ),
        report_numbers=('100', '101'),
        subjects=('Accelerators', 'Computing'),
    )
    input_data.add_links(pdf_url='http://example.com/a-pdf')
    input_data.add_references_comments(
        references='references',
        extra_comments='comments about the document',
    )
    input_data.add_book_chapter_info(
        book_title='Relativistic Quantum Mechanics',
        page_start='512',
        page_end='1024',
    )

    literature_submission_form.go_to()

    literature_submission_form.submit_chapter(
        input_data).assert_has_no_errors()
    _accept_and_complete(input_data)