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,
)
# @pre_load
# def convert_check_imei(self, data):
# if data.get('imei', None):
# data['imei'] = int(imei.validate(data['imei']))
# return data
@pre_load
def convert_check_imei(self, data):
if data.get('imei', None):
# data['imei'] = int(imei.validate(data['imei']))
data['imei'] = int(data['imei'].replace("-", ""))
return data
@pre_load
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.usefixtures(conftest.app_context.__name__)
def test_edit_and_binding(user3: UserClientFlask):
# TODO
uri = '/inventory/device/add/'
user3.get(uri)