def test_download_file(check_config, check_config_web): processor = ProcessFlow(config_model=check_config, config_model_web=check_config_web) assert processor.download_file()
def test_get_download_link(check_config, check_config_web): processor = ProcessFlow(config_model=check_config, config_model_web=check_config_web) assert processor._get_link( ) == 'https://www.aihw.gov.au/getmedia/5e16ec41-9bfa-4a33-bffa-9081a759cd9b/aihw-hou-299-historical.xlsx.aspx'
from app.controller.process_flow import ProcessFlow from app.model.input_model_from_config import InputModelFromConfig from app.model.input_model_from_config_web import InputModelFromConfigWeb # for now australia only is supported if __name__ == '__main__': data_model, data_model_web = InputModelFromConfig( ), InputModelFromConfigWeb() processor = ProcessFlow(config_model=data_model, config_model_web=data_model_web) # processor._get_link() processor.download_file() # processor.get_convert_to_csv() # processor.get_converter()
from app.controller.process_flow import ProcessFlow from app.model.input_model_from_config import InputModelFromConfig from app.model.input_model_from_config_web import InputModelFromConfigWeb # for now australia only is supported if __name__ == '__main__': data_model, data_model_web = InputModelFromConfig( ), InputModelFromConfigWeb() processor = ProcessFlow(config_model=data_model, config_model_web=data_model_web) processor.get_converter()
def test_get_converter(check_config, check_config_web): processor = ProcessFlow(config_model=check_config, config_model_web=check_config_web) assert processor.get_converter()