Skip to content

Commit

Permalink
fix available tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matusdrobuliak66 committed Dec 17, 2024
1 parent 043b78b commit 8b41ebf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def get_licensed_items(


@log_decorator(_logger, level=logging.DEBUG)
async def get_purchased_licensed_items_for_wallet(
async def get_available_licensed_items_for_wallet(
rabbitmq_rpc_client: RabbitMQRPCClient,
*,
product_name: ProductName,
Expand All @@ -56,7 +56,7 @@ async def get_purchased_licensed_items_for_wallet(
result: LicensedItemGet = await rabbitmq_rpc_client.request(
WEBSERVER_RPC_NAMESPACE,
TypeAdapter(RPCMethodName).validate_python(
"get_purchased_licensed_items_for_wallet"
"get_available_licensed_items_for_wallet"
),
product_name=product_name,
user_id=user_id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def get_licensed_items(


@router.expose(reraise_if_error_type=(NotImplementedError,))
async def get_purchased_licensed_items_for_wallet(
async def get_available_licensed_items_for_wallet(
app: web.Application,
*,
product_name: ProductName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
from servicelib.rabbitmq import RabbitMQRPCClient
from servicelib.rabbitmq.rpc_interfaces.webserver.licenses.licensed_items import (
checkout_licensed_item_for_wallet,
get_available_licensed_items_for_wallet,
get_licensed_items,
get_purchased_licensed_items_for_wallet,
release_licensed_item_for_wallet,
)
from settings_library.rabbit import RabbitSettings
Expand Down Expand Up @@ -147,7 +147,7 @@ async def test_license_checkout_workflow(
assert result.total == 1

with pytest.raises(NotImplementedError):
await get_purchased_licensed_items_for_wallet(
await get_available_licensed_items_for_wallet(
rpc_client,
user_id=logged_user["id"],
product_name=osparc_product_name,
Expand Down

0 comments on commit 8b41ebf

Please sign in to comment.