oaebu_workflows.thoth_telescope.tests.test_thoth_telescope

Module Contents

Classes

TestThothTelescope

Tests for the Thoth telescope

Attributes

FAKE_PUBLISHER_ID

oaebu_workflows.thoth_telescope.tests.test_thoth_telescope.FAKE_PUBLISHER_ID = 'fake_publisher_id'[source]
class oaebu_workflows.thoth_telescope.tests.test_thoth_telescope.TestThothTelescope(*args, **kwargs)[source]

Bases: observatory.platform.observatory_environment.ObservatoryTestCase

Tests for the Thoth telescope

Constructor which sets up variables used by tests.

Parameters:
  • args – arguments.

  • kwargs – keyword arguments.

test_dag_structure()[source]

Test that the ONIX DAG has the correct structure.

test_dag_load()[source]

Test that the DAG can be loaded from a DAG bag.

test_telescope()[source]

Test the Thoth telescope end to end.

test_download_onix()[source]

Tests the download_onix function. Will test that the function works as expected using proxy HTTP requests

test_thoth_api()[source]

Tests that HTTP requests to the thoth API are successful