Skip to content

Commit

Permalink
Fixes (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo authored Dec 11, 2020
1 parent 78c8edf commit 247c279
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion speid/validations/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Account:
apellido_paterno: str
cuenta: str
rfc_curp: str
fecha_nacimiento: dt.date
fecha_nacimiento: dt.datetime
pais_nacimiento: str

telefono: Optional[str] = None
Expand Down
6 changes: 3 additions & 3 deletions tests/models/test_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_account():
cuenta='646180157063641989',
rfc_curp='SACR891125M47',
telefono='5567980796',
fecha_nacimiento=dt.date(1989, 11, 25),
fecha_nacimiento=dt.datetime(1989, 11, 25),
pais_nacimiento='MX',
)
account = account_validation.transform()
Expand Down Expand Up @@ -58,7 +58,7 @@ def test_create_account():
cuenta='646180157069665325',
rfc_curp='SACR891125HDFGHI01',
telefono='5567980796',
fecha_nacimiento=dt.date(1989, 11, 25),
fecha_nacimiento=dt.datetime(1989, 11, 25),
pais_nacimiento='MX',
)

Expand All @@ -81,7 +81,7 @@ def test_create_account_failed():
cuenta='646180157063641989',
rfc_curp='SACR89112501',
telefono='5567980796',
fecha_nacimiento=dt.date(1989, 11, 25),
fecha_nacimiento=dt.datetime(1989, 11, 25),
pais_nacimiento='MX',
)

Expand Down
16 changes: 8 additions & 8 deletions tests/tasks/test_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_create_account():
cuenta='646180157069665325',
rfc_curp='SACR891125HDFGHI01',
telefono='5567980796',
fecha_nacimiento=dt.date(1989, 11, 25),
fecha_nacimiento='1994-04-19T00:00:00',
pais_nacimiento='MX',
)

Expand Down Expand Up @@ -52,7 +52,7 @@ def test_create_account_existing_account():
cuenta='646180157069665325',
rfc_curp='SACR891125HDFGHI01',
telefono='5567980796',
fecha_nacimiento=dt.date(1989, 11, 25),
fecha_nacimiento=dt.datetime(1989, 11, 25),
pais_nacimiento='MX',
)
account.estado = Estado.error
Expand All @@ -64,7 +64,7 @@ def test_create_account_existing_account():
cuenta='646180157069665325',
rfc_curp='SACR891125HDFGHI01',
telefono='5567980796',
fecha_nacimiento=dt.date(1989, 11, 25),
fecha_nacimiento='1994-04-19T00:00:00',
pais_nacimiento='MX',
)

Expand All @@ -83,7 +83,7 @@ def test_create_account_existing_succeeded_account():
cuenta='646180157069665325',
rfc_curp='SACR891125HDFGHI01',
telefono='5567980796',
fecha_nacimiento=dt.date(1989, 11, 25),
fecha_nacimiento=dt.datetime(1989, 11, 25),
pais_nacimiento='MX',
)
account.estado = Estado.succeeded
Expand All @@ -96,7 +96,7 @@ def test_create_account_existing_succeeded_account():
cuenta='646180157069665325',
rfc_curp='SACR891125HDFGHI01',
telefono='5567980796',
fecha_nacimiento=dt.date(1989, 11, 25),
fecha_nacimiento='1994-04-19T00:00:00',
pais_nacimiento='MX',
)

Expand All @@ -119,7 +119,7 @@ def test_does_not_retry_when_validation_error_raised(
cuenta='646180157069665325',
rfc_curp=None,
telefono='5567980796',
fecha_nacimiento=dt.date(1989, 11, 25),
fecha_nacimiento='1994-04-19T00:00:00',
pais_nacimiento='MX',
)
create_account(account_dict)
Expand Down Expand Up @@ -182,7 +182,7 @@ def test_update_account_successfully(
apellido_paterno='San',
cuenta='646180157000000004',
rfc_curp='SACR891125HDFABC01',
fecha_nacimiento=dt.date(1989, 11, 25),
fecha_nacimiento='1994-04-19T00:00:00',
pais_nacimiento='MX',
)

Expand Down Expand Up @@ -243,7 +243,7 @@ def test_update_account_does_not_exists_then_create_account(
apellido_paterno='Sánchez',
cuenta='646180157000000004',
rfc_curp='SACR891125HDFABC01',
fecha_nacimiento=dt.date(1989, 11, 25),
fecha_nacimiento='1994-04-19T00:00:00',
pais_nacimiento='MX',
)

Expand Down

0 comments on commit 247c279

Please sign in to comment.