def test_run(self, handle_global_vendor_points, handle_unmapped_syrx_nums, import_weather_data, group_vendor_data, process_vendor_data, handle_component_data, get_logger):
        nightly_process_config = MagicMock()

        nightly_process = NightlyProcess(nightly_process_config)
        nightly_process.run()

        handle_unmapped_syrx_nums.assert_called_with()
        import_weather_data.assert_called_with()
        group_vendor_data.assert_called_with()
        process_vendor_data.assert_called_with()
        handle_component_data.assert_called_with()
        handle_global_vendor_points.assert_called_with()
예제 #2
0
from config import BaseConfig
from nightly_process.main import NightlyProcess

nightly_process = NightlyProcess(BaseConfig)
nightly_process.run()