Skip to content

Commit

Permalink
Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
PSNAppz committed Jun 26, 2024
1 parent 70b82dc commit 85d3072
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions tests/test_async_mapper_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def test_link_async(
link_request=[
SingleLinkRequest(
reference_id="test_ref",
timestamp=datetime.utcnow(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -200,7 +200,7 @@ async def test_link_async_invalid_signature(
link_request=[
SingleLinkRequest(
reference_id="test_ref",
timestamp=datetime.utcnow(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -279,7 +279,7 @@ async def test_handle_service_and_link_callback(
link_request=[
SingleLinkRequest(
reference_id="test_ref",
timestamp=datetime.utcnow(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -360,7 +360,7 @@ async def test_update_async(
update_request=[
SingleUpdateRequest(
reference_id="test_ref",
timestamp=datetime.utcnow(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -444,7 +444,7 @@ async def test_update_async_invalid_signature(
update_request=[
SingleUpdateRequest(
reference_id="test_ref",
timestamp=datetime.utcnow(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -523,7 +523,7 @@ async def test_handle_service_and_update_callback(
update_request=[
SingleUpdateRequest(
reference_id="test_ref",
timestamp=datetime.utcnow(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -602,7 +602,7 @@ async def test_resolve_async(
resolve_request=[
SingleResolveRequest(
reference_id="test_ref",
timestamp=datetime.utcnow(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -686,7 +686,7 @@ async def test_resolve_async_invalid_signature(
resolve_request=[
SingleResolveRequest(
reference_id="test_ref",
timestamp=datetime.utcnow(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -765,7 +765,7 @@ async def test_handle_service_and_resolve_callback(
resolve_request=[
SingleResolveRequest(
reference_id="test_ref",
timestamp=datetime.utcnow(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -844,7 +844,7 @@ async def test_unlink_async(
unlink_request=[
SingleUnlinkRequest(
reference_id="test_ref",
timestamp=datetime.utcnow(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -928,7 +928,7 @@ async def test_unlink_async_invalid_signature(
unlink_request=[
SingleUnlinkRequest(
reference_id="test_ref",
timestamp=datetime.utcnow(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -1007,7 +1007,7 @@ async def test_handle_service_and_unlink_callback(
unlink_request=[
SingleUnlinkRequest(
reference_id="test_ref",
timestamp=datetime.utcnow(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_sync_mapper_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def setup_link_controller():
link_request=[
SingleLinkRequest(
reference_id="test_ref",
timestamp=datetime.now(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -230,7 +230,7 @@ def setup_update_controller():
update_request=[
SingleUpdateRequest(
reference_id="test_ref",
timestamp=datetime.now(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -324,7 +324,7 @@ def setup_resolve_controller():
resolve_request=[
SingleResolveRequest(
reference_id="test_ref",
timestamp=datetime.now(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down Expand Up @@ -418,7 +418,7 @@ def setup_unlink_controller():
unlink_request=[
SingleUnlinkRequest(
reference_id="test_ref",
timestamp=datetime.now(),
timestamp=str(datetime.now()),
id="test_id",
fa="test_fa",
)
Expand Down

0 comments on commit 85d3072

Please sign in to comment.