academic_observatory_workflows.pubmed_telescope.tests.test_telescope
Functions
query_table(→ List[Dict])
|
Query a BigQuery table, sorting the results and returning results as a list of dicts. |
Module Contents
-
academic_observatory_workflows.pubmed_telescope.tests.test_telescope.FIXTURES_FOLDER[source]
-
academic_observatory_workflows.pubmed_telescope.tests.test_telescope.query_table(table_id: str, select_columns: str, order_by_field: str) → List[Dict][source]
Query a BigQuery table, sorting the results and returning results as a list of dicts.
- Parameters:
-
- Returns:
the table rows.
-
class academic_observatory_workflows.pubmed_telescope.tests.test_telescope.PubMedTest[source]
-
ftp_server_url = 'localhost'[source]
-
ftp_port = 80[source]
-
baseline_path = '/pubmed/baseline/'[source]
-
updatefiles_path = '/pubmed/updatefiles/'[source]
-
first_run[source]
-
second_run[source]
-
third_run[source]
-
class academic_observatory_workflows.pubmed_telescope.tests.test_telescope.TestPubMedTelescope(*args, **kwargs)[source]
Bases: observatory_platform.sandbox.test_utils.SandboxTestCase
Tests for the Pubmed telescope
-
dag_id = 'pubmed'[source]
-
test_dag_structure()[source]
Test PubMed DAG structure.
-
test_dag_load()[source]
Test that the PubMed DAG can be loaded from a DAG bag.
-
test_telescope()[source]
Test the PubMed Telescope end to end