

def test_update_progress(self):
    state = {
        'message': 'dummy',
        'severity': 'dummy',
        'percentage': 0.5,
    }
    log_history_mapping = {
        'test_log': {
            'filename': 'test_log',
            'partial_line': '',
            'position': 0,
            'line_matcher_name': 'start',
            'percentage': 0.0,
            'message': '',
            'severity': 'INFO',
        },
    }
    self.os_matcher.update_progress(name='host1', state=state, log_history_mapping=log_history_mapping)
    self.assertEqual(0.6, log_history_mapping['percentage'])

dataset/ETHPy150Open openstack/compass-core/compass/tests/log_analyzor/test_adapter_matcher.py TestOSMatcher.test_update_progress/VarMisuse@104/171 `state`->`log_history_mapping`