def test_netmiko_napalm_config(user_client): create_from_file(user_client, 'europe.xls') user_client.post('/scripts/create_script_netmiko_config', data=netmiko_ping) path_yaml = join(path_scripts, 'interfaces', 'parameters.yaml') with open(path_yaml, 'rb') as f: napalm_jinja2_script['file'] = f user_client.post('/scripts/create_script_napalm_config', data=napalm_jinja2_script) with user_client.session_transaction() as sess: sess['selection'] = ['1', '21', '22'] user_client.post('tasks/view_scheduler', data=instant_task) user_client.post('tasks/view_scheduler', data=scheduled_task) assert len(Task.query.all()) == 2
def test_google_earth(user_client): create_from_file(user_client, 'europe.xls') user_client.post('/views/export_to_google_earth', data=google_earth_dict)
def test_getters(user_client): create_from_file(user_client, 'europe.xls') with user_client.session_transaction() as sess: sess['selection'] = ['1', '21', '22'] user_client.post('views/geographical_view', data=getters_once_dict) assert len(Task.query.all()) == 1
def test_google_earth(user_client): create_from_file(user_client, 'europe.xls') user_client.post('/views/geographical_view', data=google_earth_dict)