Mercury2 Hardware Manager  1.0dev
The hardware manager component of the Mercury2 ground station suite.
 All Classes Namespaces Functions Variables Pages
hwm.sessions.tests.test_schedule.TestSchedule Class Reference

This test suite tests the functionality of the schedule manager (ScheduleManager). More...

Inheritance diagram for hwm.sessions.tests.test_schedule.TestSchedule:

Public Member Functions

def setUp
 
def test_local_file_load
 Tests the ability of the Schedule manager to download a valid dummy schedule from the local disk and update its local schedule copy.
 
def test_local_file_load_invalid_schema
 Verifies that ScheduleManager rejects schedules that don't fit the schedule schema requirements (see included documentation for requirements).
 
def test_local_file_load_missing
 Tests that the ScheduleManager returns an error if a missing schedule file is requested.
 
def test_remote_file_load_missing
 Tests the schedule manager's ability to respond to an invalid schedule URL.
 
def test_get_active_reservations
 Tests that the schedule manager returns the reservations that are active (i.e. More...
 

Public Attributes

 source_data_directory
 

Detailed Description

This test suite tests the functionality of the schedule manager (ScheduleManager).

Member Function Documentation

def hwm.sessions.tests.test_schedule.TestSchedule.test_get_active_reservations (   self)

Tests that the schedule manager returns the reservations that are active (i.e.

time_start < current time < time_end), while ignoring the inactive ones.

Note
The end time of one of the reservations in the test schedule is set to 2019 to make this test pass.

The documentation for this class was generated from the following file: