From 1fec6ad4eed46de42a88717a6096124af51e70fb Mon Sep 17 00:00:00 2001 From: Martin Pentrak Date: Mon, 14 Oct 2024 13:16:47 +0200 Subject: [PATCH] PUT /adim/api/acount_plans/{id}.json --- .../test_integration_account_plans.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/integration/test_integration_account_plans.py diff --git a/tests/integration/test_integration_account_plans.py b/tests/integration/test_integration_account_plans.py new file mode 100644 index 0000000..62f18a3 --- /dev/null +++ b/tests/integration/test_integration_account_plans.py @@ -0,0 +1,18 @@ +import secrets + +import pytest + +from tests.integration import asserts +from tests.integration.asserts import assert_resource + + +@pytest.fixture(scope='module') +def update_account_plan_params(): + suffix = secrets.token_urlsafe(8) + name = f"updated-{suffix}" + return dict(name=name, description=name) + +def test_account_plan_update(account_plan, update_account_plan_params): + updated_account_plan = account_plan.update(params=update_account_plan_params) + asserts.assert_resource(updated_account_plan) + asserts.assert_resource_params(updated_account_plan, update_account_plan_params) \ No newline at end of file