Skip to content

Commit

Permalink
Merge pull request #33 from cloudblue/feature/LITE-28072-Create-Tasks…
Browse files Browse the repository at this point in the history
…-functions

LITE-28072: Adding placeholders functions for tasks
  • Loading branch information
d3rky authored Jul 19, 2023
2 parents 36d1c62 + e63f795 commit bbe6dd2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions connect_ext_ppr/tasks_manager.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
async def validate_ppr():
return True


async def apply_ppr_and_delegate_to_marketplaces():
return True


async def delegate_to_l2():
return True
22 changes: 22 additions & 0 deletions tests/test_tasks_manager.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import pytest

from connect_ext_ppr.tasks_manager import (
apply_ppr_and_delegate_to_marketplaces,
delegate_to_l2,
validate_ppr,
)


@pytest.mark.asyncio
async def test_apply_ppr_and_delegate_to_marketplaces():
assert await apply_ppr_and_delegate_to_marketplaces()


@pytest.mark.asyncio
async def test_delegate_to_l2():
assert await delegate_to_l2()


@pytest.mark.asyncio
async def test_validate_ppr():
assert await validate_ppr()

0 comments on commit bbe6dd2

Please sign in to comment.