oaebu_workflows.google_books_telescope.tests.test_google_books_telescope

Module Contents

Classes

TestGoogleBooksTelescope

Tests for the GoogleBooks telescope

class oaebu_workflows.google_books_telescope.tests.test_google_books_telescope.TestGoogleBooksTelescope(*args, **kwargs)[source]

Bases: observatory.platform.observatory_environment.ObservatoryTestCase

Tests for the GoogleBooks telescope

Constructor which sets up variables used by tests. :param args: arguments. :param kwargs: keyword arguments.

test_dag_structure()[source]

Test that the Google Books DAG has the correct structure.

test_dag_load()[source]

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

test_telescope()[source]

Test the Google Books telescope end to end.

test_gb_transform(mock_variable_get)[source]

Test sanity check in transform method when transaction date falls outside release month

Parameters:

mock_variable_get – Mock Airflow Variable ‘data’