Skip to content

Commit 0177a23

Browse files
committed
Update user profession and add verification IDs in tests
1 parent bdc7240 commit 0177a23

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

tests/conftest.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import pytest
55
from cuenca_validations.types import Country, Gender, State
6+
from cuenca_validations.types.enums import Profession
67

78
import cuenca
89

@@ -49,15 +50,15 @@ def user_request() -> dict:
4950
curp='LOHJ660606HDFPRS02',
5051
phone_number='+525511223344',
5152
email_address='jose@test.com',
52-
profession='employee',
53+
profession=Profession.empleado,
5354
address=dict(
5455
street='calle 1',
5556
ext_number='2',
5657
int_number='3',
57-
postal_code='09900',
58-
state=State.DF.value,
59-
country=Country.MX,
58+
postal_code_id='PC2ygq9j2bS9-9tsuVawzErA',
6059
),
60+
phone_verification_id='VERdkuqOCjSA2PSS-VCj7HhQ',
61+
email_verification_id='VERppwdqsQSAQFFF-CDsWD8s',
6162
)
6263
return user_dict
6364

tests/resources/test_users.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import pytest
44
from cuenca_validations.types import VerificationType
5+
from cuenca_validations.types.enums import Profession
56

67
from cuenca import Verification
78
from cuenca.resources import CurpValidation, User
@@ -30,7 +31,7 @@ def test_user_query():
3031
def test_user_update():
3132
user_id = 'USCM-zlFcNQk6ue4gZ_mTGeQ'
3233
changes = dict(
33-
profession='programmer',
34+
profession=Profession.sistemas,
3435
phone_number='+525555555555',
3536
govt_id=dict(
3637
type='ine',

0 commit comments

Comments
 (0)