search.process.tests module
Tests for search.transform
.
-
class
search.process.tests.
TestTransformBulkDocmeta
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Test transformation of docmeta retrieved from bulk endpoint.
-
test_transform
()[source]
All of the paper ID and version fields should be set correctly.
-
class
search.process.tests.
TestTransformMetdata
(methodName='runTest')[source]
Bases: unittest.case.TestCase
Test transformations for each of the metadata fields.
-
test_abstract
()[source]
Field abstract
is populated from abstract_utf8
.
-
test_acm_class
()[source]
Field acm_class
is populated from acm_class
.
-
test_announced_date_first
()[source]
announced_date_first
populated from announced_date_first
.
-
test_authors
()[source]
Field authors
is populated from authors_parsed
.
-
test_authors_freeform
()[source]
Field authors_freeform
is populated from authors_utf8
.
-
test_doi
()[source]
Field doi
is populated from doi
.
-
test_id
()[source]
Field id
is populated from paper_id
.
-
test_is_withdrawn
()[source]
Field is_withdrawn
is populated from is_withdrawn
.
-
test_license
()[source]
Field license
is populated from license
.
-
test_metadata_id
()[source]
Field comments
is populated from comments_utf8
.
-
test_modified_date
()[source]
Field modified_date
is populated from modified_date
.
-
test_msc_class
()[source]
Field msc_class
is populated from msc_class
.
-
test_owners
()[source]
Field owners
is populated from author_owners
.
-
test_paper_version
()[source]
Field paper_id_v
is populated from paper_id
.
-
test_primary_classification
()[source]
primary_classification
set from primary_classification
.
-
test_proxy
()[source]
Field proxy
is populated from proxy
.
-
test_report_num
()[source]
Field report_num
is populated from report_num
.
-
test_secondary_classification
()[source]
secondary_classification
from secondary_classification
.
-
test_source
()[source]
Field source
is populated from source
.
-
test_submitted_date
()[source]
Field submitted_date
is populated from submitted_date
.
-
test_submitted_date_all
()[source]
submitted_date_all
is populated from submitted_date_all
.
-
test_submitter
()[source]
Field submitter
is populated from submitter
.
-
test_title
()[source]
Field title
is populated from title_utf8
.
-
test_title_utf8
()[source]
Field title
is populated from title_utf8
.
-
test_updated_date
()[source]
Field updated_date
is populated from updated_date
.
-
test_version
()[source]
Field version
is populated from version
.