tests.unit package

Submodules

tests.unit.test_config module

Unit tests for the running.config module

tests.unit.test_config.test_load_config_ini()

Load a test configuration file in .ini format, and check if the DEFAULT section propagated correctly.

tests.unit.test_config.test_merge_defaults()

A dictionary that has an item with a “DEFAULT” key, if that item is itself a dictionary, then it should merge that item’s subitems with all the other items in the dictionary that are also themselves dictionaries.

tests.unit.test_dates module

Unit tests for the running.dates module

tests.unit.test_dates.test_current_date()

Current Date matches various provided moments’ dates.

tests.unit.test_dates.test_current_day()

Day of the week of various dates (Monday = 0 and Sunday = 6).

tests.unit.test_dates.test_current_seconds()

Various moments in seconds inside of a minute.

tests.unit.test_dates.test_current_seconds_milliseconds()

Various moments with milliseconds inside of a minute.

tests.unit.test_dates.test_current_time()

Time of the day in HH:MM.

tests.unit.test_dates.test_now_local()

Using the local machine’s timezone.

tests.unit.test_dates.test_now_timezones()

Time returned matches specific timezones.

tests.unit.test_dates.test_now_utc()

Using the UTC default timezone.

Module contents

Top level of the unit tests