fix tests smartphons

This commit is contained in:
Cayo Puigdefabregas 2023-06-07 13:36:08 +02:00
parent 2ef6e6cb49
commit bb6365c519
3 changed files with 8 additions and 8 deletions

View File

@ -301,11 +301,12 @@ class Mobile(Device):
description=m.Mobile.display_size.comment, description=m.Mobile.display_size.comment,
) )
# @pre_load @pre_load
# def convert_check_imei(self, data): def convert_check_imei(self, data):
# if data.get('imei', None): if data.get('imei', None):
# data['imei'] = int(imei.validate(data['imei'])) # data['imei'] = int(imei.validate(data['imei']))
# return data data['imei'] = int(data['imei'].replace("-", ""))
return data
@pre_load @pre_load
def convert_check_meid(self, data: dict): def convert_check_meid(self, data: dict):

File diff suppressed because one or more lines are too long

View File

@ -2239,7 +2239,6 @@ def test_manual_binding(user3: UserClientFlask):
@pytest.mark.mvp @pytest.mark.mvp
@pytest.mark.usefixtures(conftest.app_context.__name__) @pytest.mark.usefixtures(conftest.app_context.__name__)
def test_edit_and_binding(user3: UserClientFlask): def test_edit_and_binding(user3: UserClientFlask):
# TODO
uri = '/inventory/device/add/' uri = '/inventory/device/add/'
user3.get(uri) user3.get(uri)