academic_observatory_workflows.pubmed_telescope.tests.test_tasks
Attributes
Classes
Module Contents
- class academic_observatory_workflows.pubmed_telescope.tests.test_tasks.TestPubMedUtils(*args, **kwargs)[source]
Bases:
observatory_platform.sandbox.test_utils.SandboxTestCase- test_download_datafiles()[source]
Test that an exmaple PubMed XMLs can be transformed successfully.
- test_save_pubmed_jsonl()[source]
Test that data can be saved from to a json.gz or a .jsonl file correctly.
- test_save_pubmed_merged_upserts()[source]
Test if records can be reliably pulled from transformed files and written to file.
- test_parse_articles()[source]
Test if PubmedArticle records (upserts) can be pulled out from a data dictionary.
- test_parse_deletes()[source]
Test if DeleteCiation records (deletes) can be pulled out from a data dictionary.
- test_add_attributes()[source]
Test that attributes from the Biopython data classes can be reliably pulled out and added to the dictionary.