Example #1
0
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()
Example #2
0
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'
Example #3
0
File: main.py Project: irrade/AIHW
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()
Example #4
0
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()
Example #5
0
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()