Example #1
0
def build_test_sprites():
    DURATION_CONFIG = {
        'I90': {
            'type': 'Duration',
            'label': 'I90',
            'low_val': 13.0,  # pylint:disable=invalid-name
            'high_val': 25.0,
            'data_label': 'travel_time_i90'
        }
    }
    datasrc = data.InputData()
    datasrc['travel_time_i90'] = 10.0
    return sprites.sprite_factory(DURATION_CONFIG, datasrc, MockDisplay())
Example #2
0
def build_test_sprites():
    # pylint:disable=invalid-name
    DURATION_CONFIG = {
        "I90": {
            "type": "Duration",
            "label": "I90",
            "low_val": 13.0,
            "high_val": 25.0,
            "data_label": "travel_time_i90",
        }
    }
    datasrc = data.InputData()
    datasrc["travel_time_i90"] = 10.0
    return sprites.sprite_factory(DURATION_CONFIG, datasrc, MockDisplay())
Example #3
0
 def test_all(self):
     """Test all configured sprites."""
     existing_sprites = sprites.sprite_factory(self.conf['sprites'], None,
                                               MockDisplay())
     scenes.scene_factory(64, 32, self.conf['scenes'], existing_sprites)
Example #4
0
 def setUp(self):
     """Build temperature sprites from config."""
     self.conf = load_test_config()
     self.sprites = sprites.sprite_factory(self.conf["sprites"], None, MockDisplay())