prereise.gather.tests package

Submodules

prereise.gather.tests.mock_generation module

prereise.gather.tests.mock_generation.create_mock_generation_data_frame()[source]

Create mock EIA 923 generation data frame.

Returns:

(pandas.DataFrame) – mock data frame.

prereise.gather.tests.test_helpers module

prereise.gather.tests.test_helpers.test_get_monthly_net_generation()[source]
prereise.gather.tests.test_helpers.test_get_monthly_net_generation_argument_type()[source]
prereise.gather.tests.test_helpers.test_get_monthly_net_generation_argument_value()[source]

prereise.gather.tests.test_rate_limit module

class prereise.gather.tests.test_rate_limit.SleepCounter[source]

Bases: object

sleep(seconds)[source]
time()[source]
prereise.gather.tests.test_rate_limit.sleepless(monkeypatch)[source]
prereise.gather.tests.test_rate_limit.test_decorator_with_default(sleepless)[source]
prereise.gather.tests.test_rate_limit.test_decorator_with_limit(sleepless)[source]
prereise.gather.tests.test_rate_limit.test_default_no_limit(sleepless)[source]
prereise.gather.tests.test_rate_limit.test_sleep_occurrs(sleepless)[source]

prereise.gather.tests.test_retry module

exception prereise.gather.tests.test_retry.CustomError[source]

Bases: Exception

prereise.gather.tests.test_retry.test_counter_attribute()[source]
prereise.gather.tests.test_retry.test_decorate_without_call()[source]
prereise.gather.tests.test_retry.test_max_times_reached()[source]
prereise.gather.tests.test_retry.test_raises_after_max_attempts()[source]
prereise.gather.tests.test_retry.test_return_value()[source]
prereise.gather.tests.test_retry.test_unhandled_exception()[source]

Module contents