oaebu_workflows.google_analytics3_telescope.tests.test_google_analytics3_telescope

Module Contents

Classes

TestGoogleAnalytics3Telescope

Tests for the Google Analytics telescope

Functions

create_http_mock_sequence(organisation_name)

Create a list of http mock sequences for listing books and getting dimension data

class oaebu_workflows.google_analytics3_telescope.tests.test_google_analytics3_telescope.TestGoogleAnalytics3Telescope(*args, **kwargs)[source]

Bases: observatory.platform.observatory_environment.ObservatoryTestCase

Tests for the Google Analytics telescope

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

test_dag_structure()[source]

Test that the Google Analytics DAG has the correct structure. :return: None

test_dag_load()[source]

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

test_telescope(mock_account_credentials, mock_build)[source]

Test the Google Analytics telescope end to end specifically for ANU Press, to test custom dimensions. :return: None.

oaebu_workflows.google_analytics3_telescope.tests.test_google_analytics3_telescope.create_http_mock_sequence(organisation_name)[source]

Create a list of http mock sequences for listing books and getting dimension data

Parameters:

organisation_name (str) – The organisation name (add custom dimensions for ANU)

Returns:

A list with HttpMockSequence instances

Return type:

list