fix tests smartphons
This commit is contained in:
parent
2ef6e6cb49
commit
bb6365c519
|
@ -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
|
@ -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)
|
||||
|
||||
|
|
Reference in a new issue