From 8a5330c3963fe58c9c281b6f3696bd6f3fc96d58 Mon Sep 17 00:00:00 2001 From: Neil Campbell Date: Thu, 14 Dec 2023 13:51:00 +0800 Subject: [PATCH] chore: re-generate test snapshots --- tests_generated/test_default_parameters/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_default_parameters/tests/hello_world_test.py | 8 ++++---- .../test_deployment_language-python/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../tests/hello_world_test.py | 8 ++++---- .../test_deployment_language-typescript/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../tests/hello-world.spec.ts | 6 ++---- tests_generated/test_ide_jetbrains-False/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_ide_jetbrains-False/tests/hello_world_test.py | 8 ++++---- tests_generated/test_ide_jetbrains-True/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_ide_jetbrains-True/tests/hello_world_test.py | 8 ++++---- tests_generated/test_ide_vscode-False/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_ide_vscode-False/tests/hello_world_test.py | 8 ++++---- tests_generated/test_ide_vscode-True/.algokit.toml | 2 +- .../test_ide_vscode-True/smart_contracts/helpers/build.py | 2 +- .../test_ide_vscode-True/tests/hello_world_test.py | 8 ++++---- tests_generated/test_preset_name-production/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_preset_name-production/tests/hello_world_test.py | 8 ++++---- tests_generated/test_preset_name-starter/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_preset_name-starter/tests/hello_world_test.py | 8 ++++---- tests_generated/test_python_linter-flake8/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_python_linter-flake8/tests/hello_world_test.py | 8 ++++---- tests_generated/test_python_linter-none/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_python_linter-none/tests/hello_world_test.py | 8 ++++---- tests_generated/test_python_linter-ruff/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_python_linter-ruff/tests/hello_world_test.py | 8 ++++---- .../.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../tests/hello_world_test.py | 8 ++++---- .../.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../tests/hello-world.spec.ts | 6 ++---- .../.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../tests/hello_world_test.py | 8 ++++---- .../.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../tests/hello-world.spec.ts | 6 ++---- .../test_use_github_actions-False/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../tests/hello_world_test.py | 8 ++++---- .../test_use_github_actions-True/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../tests/hello_world_test.py | 8 ++++---- tests_generated/test_use_python_black-False/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_use_python_black-False/tests/hello_world_test.py | 8 ++++---- tests_generated/test_use_python_black-True/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_use_python_black-True/tests/hello_world_test.py | 8 ++++---- tests_generated/test_use_python_mypy-False/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_use_python_mypy-False/tests/hello_world_test.py | 8 ++++---- tests_generated/test_use_python_mypy-True/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_use_python_mypy-True/tests/hello_world_test.py | 8 ++++---- .../test_use_python_pytest-False/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- tests_generated/test_use_python_pytest-True/.algokit.toml | 2 +- .../smart_contracts/helpers/build.py | 2 +- .../test_use_python_pytest-True/tests/hello_world_test.py | 8 ++++---- 71 files changed, 134 insertions(+), 140 deletions(-) diff --git a/tests_generated/test_default_parameters/.algokit.toml b/tests_generated/test_default_parameters/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_default_parameters/.algokit.toml +++ b/tests_generated/test_default_parameters/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_default_parameters/smart_contracts/helpers/build.py b/tests_generated/test_default_parameters/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_default_parameters/smart_contracts/helpers/build.py +++ b/tests_generated/test_default_parameters/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_default_parameters/tests/hello_world_test.py b/tests_generated/test_default_parameters/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_default_parameters/tests/hello_world_test.py +++ b/tests_generated/test_default_parameters/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_deployment_language-python/.algokit.toml b/tests_generated/test_deployment_language-python/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_deployment_language-python/.algokit.toml +++ b/tests_generated/test_deployment_language-python/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_deployment_language-python/smart_contracts/helpers/build.py b/tests_generated/test_deployment_language-python/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_deployment_language-python/smart_contracts/helpers/build.py +++ b/tests_generated/test_deployment_language-python/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_deployment_language-python/tests/hello_world_test.py b/tests_generated/test_deployment_language-python/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_deployment_language-python/tests/hello_world_test.py +++ b/tests_generated/test_deployment_language-python/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_deployment_language-typescript/.algokit.toml b/tests_generated/test_deployment_language-typescript/.algokit.toml index 08717563..ad84a3ce 100644 --- a/tests_generated/test_deployment_language-typescript/.algokit.toml +++ b/tests_generated/test_deployment_language-typescript/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "npm run deploy:ci" diff --git a/tests_generated/test_deployment_language-typescript/smart_contracts/helpers/build.py b/tests_generated/test_deployment_language-typescript/smart_contracts/helpers/build.py index 20d6d6d6..167ee907 100644 --- a/tests_generated/test_deployment_language-typescript/smart_contracts/helpers/build.py +++ b/tests_generated/test_deployment_language-typescript/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_deployment_language-typescript/tests/hello-world.spec.ts b/tests_generated/test_deployment_language-typescript/tests/hello-world.spec.ts index 6d885d69..d6f8e80f 100644 --- a/tests_generated/test_deployment_language-typescript/tests/hello-world.spec.ts +++ b/tests_generated/test_deployment_language-typescript/tests/hello-world.spec.ts @@ -37,12 +37,10 @@ describe('hello world contract', () => { test('simulate says hello with correct budget consumed', async () => { const { algod, indexer, testAccount } = localnet.context const { client } = await deploy(testAccount, algod, indexer) - const atc = await client.compose().hello({ name: 'World' }).hello({ name: 'Jane' }).atc() - - const result = await atc.simulate(algod) + const result = await client.compose().hello({ name: 'World' }).hello({ name: 'Jane' }).simulate() expect(result.methodResults[0].returnValue).toBe('Hello, World') expect(result.methodResults[1].returnValue).toBe('Hello, Jane') - expect(result.simulateResponse.txnGroups[0].appBudgetConsumed).toBe(98) + expect(result.simulateResponse.txnGroups[0].appBudgetConsumed).toBeLessThan(100) }) }) diff --git a/tests_generated/test_ide_jetbrains-False/.algokit.toml b/tests_generated/test_ide_jetbrains-False/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_ide_jetbrains-False/.algokit.toml +++ b/tests_generated/test_ide_jetbrains-False/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_ide_jetbrains-False/smart_contracts/helpers/build.py b/tests_generated/test_ide_jetbrains-False/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_ide_jetbrains-False/smart_contracts/helpers/build.py +++ b/tests_generated/test_ide_jetbrains-False/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_ide_jetbrains-False/tests/hello_world_test.py b/tests_generated/test_ide_jetbrains-False/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_ide_jetbrains-False/tests/hello_world_test.py +++ b/tests_generated/test_ide_jetbrains-False/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_ide_jetbrains-True/.algokit.toml b/tests_generated/test_ide_jetbrains-True/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_ide_jetbrains-True/.algokit.toml +++ b/tests_generated/test_ide_jetbrains-True/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_ide_jetbrains-True/smart_contracts/helpers/build.py b/tests_generated/test_ide_jetbrains-True/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_ide_jetbrains-True/smart_contracts/helpers/build.py +++ b/tests_generated/test_ide_jetbrains-True/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_ide_jetbrains-True/tests/hello_world_test.py b/tests_generated/test_ide_jetbrains-True/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_ide_jetbrains-True/tests/hello_world_test.py +++ b/tests_generated/test_ide_jetbrains-True/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_ide_vscode-False/.algokit.toml b/tests_generated/test_ide_vscode-False/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_ide_vscode-False/.algokit.toml +++ b/tests_generated/test_ide_vscode-False/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_ide_vscode-False/smart_contracts/helpers/build.py b/tests_generated/test_ide_vscode-False/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_ide_vscode-False/smart_contracts/helpers/build.py +++ b/tests_generated/test_ide_vscode-False/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_ide_vscode-False/tests/hello_world_test.py b/tests_generated/test_ide_vscode-False/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_ide_vscode-False/tests/hello_world_test.py +++ b/tests_generated/test_ide_vscode-False/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_ide_vscode-True/.algokit.toml b/tests_generated/test_ide_vscode-True/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_ide_vscode-True/.algokit.toml +++ b/tests_generated/test_ide_vscode-True/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_ide_vscode-True/smart_contracts/helpers/build.py b/tests_generated/test_ide_vscode-True/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_ide_vscode-True/smart_contracts/helpers/build.py +++ b/tests_generated/test_ide_vscode-True/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_ide_vscode-True/tests/hello_world_test.py b/tests_generated/test_ide_vscode-True/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_ide_vscode-True/tests/hello_world_test.py +++ b/tests_generated/test_ide_vscode-True/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_preset_name-production/.algokit.toml b/tests_generated/test_preset_name-production/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_preset_name-production/.algokit.toml +++ b/tests_generated/test_preset_name-production/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_preset_name-production/smart_contracts/helpers/build.py b/tests_generated/test_preset_name-production/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_preset_name-production/smart_contracts/helpers/build.py +++ b/tests_generated/test_preset_name-production/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_preset_name-production/tests/hello_world_test.py b/tests_generated/test_preset_name-production/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_preset_name-production/tests/hello_world_test.py +++ b/tests_generated/test_preset_name-production/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_preset_name-starter/.algokit.toml b/tests_generated/test_preset_name-starter/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_preset_name-starter/.algokit.toml +++ b/tests_generated/test_preset_name-starter/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_preset_name-starter/smart_contracts/helpers/build.py b/tests_generated/test_preset_name-starter/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_preset_name-starter/smart_contracts/helpers/build.py +++ b/tests_generated/test_preset_name-starter/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_preset_name-starter/tests/hello_world_test.py b/tests_generated/test_preset_name-starter/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_preset_name-starter/tests/hello_world_test.py +++ b/tests_generated/test_preset_name-starter/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_python_linter-flake8/.algokit.toml b/tests_generated/test_python_linter-flake8/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_python_linter-flake8/.algokit.toml +++ b/tests_generated/test_python_linter-flake8/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_python_linter-flake8/smart_contracts/helpers/build.py b/tests_generated/test_python_linter-flake8/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_python_linter-flake8/smart_contracts/helpers/build.py +++ b/tests_generated/test_python_linter-flake8/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_python_linter-flake8/tests/hello_world_test.py b/tests_generated/test_python_linter-flake8/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_python_linter-flake8/tests/hello_world_test.py +++ b/tests_generated/test_python_linter-flake8/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_python_linter-none/.algokit.toml b/tests_generated/test_python_linter-none/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_python_linter-none/.algokit.toml +++ b/tests_generated/test_python_linter-none/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_python_linter-none/smart_contracts/helpers/build.py b/tests_generated/test_python_linter-none/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_python_linter-none/smart_contracts/helpers/build.py +++ b/tests_generated/test_python_linter-none/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_python_linter-none/tests/hello_world_test.py b/tests_generated/test_python_linter-none/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_python_linter-none/tests/hello_world_test.py +++ b/tests_generated/test_python_linter-none/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_python_linter-ruff/.algokit.toml b/tests_generated/test_python_linter-ruff/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_python_linter-ruff/.algokit.toml +++ b/tests_generated/test_python_linter-ruff/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_python_linter-ruff/smart_contracts/helpers/build.py b/tests_generated/test_python_linter-ruff/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_python_linter-ruff/smart_contracts/helpers/build.py +++ b/tests_generated/test_python_linter-ruff/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_python_linter-ruff/tests/hello_world_test.py b/tests_generated/test_python_linter-ruff/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_python_linter-ruff/tests/hello_world_test.py +++ b/tests_generated/test_python_linter-ruff/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_smart_contract_generator_default_production_preset_python/.algokit.toml b/tests_generated/test_smart_contract_generator_default_production_preset_python/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_smart_contract_generator_default_production_preset_python/.algokit.toml +++ b/tests_generated/test_smart_contract_generator_default_production_preset_python/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_smart_contract_generator_default_production_preset_python/smart_contracts/helpers/build.py b/tests_generated/test_smart_contract_generator_default_production_preset_python/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_smart_contract_generator_default_production_preset_python/smart_contracts/helpers/build.py +++ b/tests_generated/test_smart_contract_generator_default_production_preset_python/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_smart_contract_generator_default_production_preset_python/tests/hello_world_test.py b/tests_generated/test_smart_contract_generator_default_production_preset_python/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_smart_contract_generator_default_production_preset_python/tests/hello_world_test.py +++ b/tests_generated/test_smart_contract_generator_default_production_preset_python/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/.algokit.toml b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/.algokit.toml index 08717563..ad84a3ce 100644 --- a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/.algokit.toml +++ b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "npm run deploy:ci" diff --git a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/smart_contracts/helpers/build.py b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/smart_contracts/helpers/build.py index 20d6d6d6..167ee907 100644 --- a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/smart_contracts/helpers/build.py +++ b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/tests/hello-world.spec.ts b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/tests/hello-world.spec.ts index 6d885d69..d6f8e80f 100644 --- a/tests_generated/test_smart_contract_generator_default_production_preset_typescript/tests/hello-world.spec.ts +++ b/tests_generated/test_smart_contract_generator_default_production_preset_typescript/tests/hello-world.spec.ts @@ -37,12 +37,10 @@ describe('hello world contract', () => { test('simulate says hello with correct budget consumed', async () => { const { algod, indexer, testAccount } = localnet.context const { client } = await deploy(testAccount, algod, indexer) - const atc = await client.compose().hello({ name: 'World' }).hello({ name: 'Jane' }).atc() - - const result = await atc.simulate(algod) + const result = await client.compose().hello({ name: 'World' }).hello({ name: 'Jane' }).simulate() expect(result.methodResults[0].returnValue).toBe('Hello, World') expect(result.methodResults[1].returnValue).toBe('Hello, Jane') - expect(result.simulateResponse.txnGroups[0].appBudgetConsumed).toBe(98) + expect(result.simulateResponse.txnGroups[0].appBudgetConsumed).toBeLessThan(100) }) }) diff --git a/tests_generated/test_smart_contract_generator_default_starter_preset_python/.algokit.toml b/tests_generated/test_smart_contract_generator_default_starter_preset_python/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_smart_contract_generator_default_starter_preset_python/.algokit.toml +++ b/tests_generated/test_smart_contract_generator_default_starter_preset_python/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_smart_contract_generator_default_starter_preset_python/smart_contracts/helpers/build.py b/tests_generated/test_smart_contract_generator_default_starter_preset_python/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_smart_contract_generator_default_starter_preset_python/smart_contracts/helpers/build.py +++ b/tests_generated/test_smart_contract_generator_default_starter_preset_python/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_smart_contract_generator_default_starter_preset_python/tests/hello_world_test.py b/tests_generated/test_smart_contract_generator_default_starter_preset_python/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_smart_contract_generator_default_starter_preset_python/tests/hello_world_test.py +++ b/tests_generated/test_smart_contract_generator_default_starter_preset_python/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/.algokit.toml b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/.algokit.toml index 08717563..ad84a3ce 100644 --- a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/.algokit.toml +++ b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "npm run deploy:ci" diff --git a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/smart_contracts/helpers/build.py b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/smart_contracts/helpers/build.py index 20d6d6d6..167ee907 100644 --- a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/smart_contracts/helpers/build.py +++ b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/tests/hello-world.spec.ts b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/tests/hello-world.spec.ts index 6d885d69..d6f8e80f 100644 --- a/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/tests/hello-world.spec.ts +++ b/tests_generated/test_smart_contract_generator_default_starter_preset_typescript/tests/hello-world.spec.ts @@ -37,12 +37,10 @@ describe('hello world contract', () => { test('simulate says hello with correct budget consumed', async () => { const { algod, indexer, testAccount } = localnet.context const { client } = await deploy(testAccount, algod, indexer) - const atc = await client.compose().hello({ name: 'World' }).hello({ name: 'Jane' }).atc() - - const result = await atc.simulate(algod) + const result = await client.compose().hello({ name: 'World' }).hello({ name: 'Jane' }).simulate() expect(result.methodResults[0].returnValue).toBe('Hello, World') expect(result.methodResults[1].returnValue).toBe('Hello, Jane') - expect(result.simulateResponse.txnGroups[0].appBudgetConsumed).toBe(98) + expect(result.simulateResponse.txnGroups[0].appBudgetConsumed).toBeLessThan(100) }) }) diff --git a/tests_generated/test_use_github_actions-False/.algokit.toml b/tests_generated/test_use_github_actions-False/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_use_github_actions-False/.algokit.toml +++ b/tests_generated/test_use_github_actions-False/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_use_github_actions-False/smart_contracts/helpers/build.py b/tests_generated/test_use_github_actions-False/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_use_github_actions-False/smart_contracts/helpers/build.py +++ b/tests_generated/test_use_github_actions-False/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_use_github_actions-False/tests/hello_world_test.py b/tests_generated/test_use_github_actions-False/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_use_github_actions-False/tests/hello_world_test.py +++ b/tests_generated/test_use_github_actions-False/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_use_github_actions-True/.algokit.toml b/tests_generated/test_use_github_actions-True/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_use_github_actions-True/.algokit.toml +++ b/tests_generated/test_use_github_actions-True/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_use_github_actions-True/smart_contracts/helpers/build.py b/tests_generated/test_use_github_actions-True/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_use_github_actions-True/smart_contracts/helpers/build.py +++ b/tests_generated/test_use_github_actions-True/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_use_github_actions-True/tests/hello_world_test.py b/tests_generated/test_use_github_actions-True/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_use_github_actions-True/tests/hello_world_test.py +++ b/tests_generated/test_use_github_actions-True/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_use_python_black-False/.algokit.toml b/tests_generated/test_use_python_black-False/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_use_python_black-False/.algokit.toml +++ b/tests_generated/test_use_python_black-False/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_use_python_black-False/smart_contracts/helpers/build.py b/tests_generated/test_use_python_black-False/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_use_python_black-False/smart_contracts/helpers/build.py +++ b/tests_generated/test_use_python_black-False/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_use_python_black-False/tests/hello_world_test.py b/tests_generated/test_use_python_black-False/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_use_python_black-False/tests/hello_world_test.py +++ b/tests_generated/test_use_python_black-False/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_use_python_black-True/.algokit.toml b/tests_generated/test_use_python_black-True/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_use_python_black-True/.algokit.toml +++ b/tests_generated/test_use_python_black-True/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_use_python_black-True/smart_contracts/helpers/build.py b/tests_generated/test_use_python_black-True/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_use_python_black-True/smart_contracts/helpers/build.py +++ b/tests_generated/test_use_python_black-True/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_use_python_black-True/tests/hello_world_test.py b/tests_generated/test_use_python_black-True/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_use_python_black-True/tests/hello_world_test.py +++ b/tests_generated/test_use_python_black-True/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_use_python_mypy-False/.algokit.toml b/tests_generated/test_use_python_mypy-False/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_use_python_mypy-False/.algokit.toml +++ b/tests_generated/test_use_python_mypy-False/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_use_python_mypy-False/smart_contracts/helpers/build.py b/tests_generated/test_use_python_mypy-False/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_use_python_mypy-False/smart_contracts/helpers/build.py +++ b/tests_generated/test_use_python_mypy-False/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_use_python_mypy-False/tests/hello_world_test.py b/tests_generated/test_use_python_mypy-False/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_use_python_mypy-False/tests/hello_world_test.py +++ b/tests_generated/test_use_python_mypy-False/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_use_python_mypy-True/.algokit.toml b/tests_generated/test_use_python_mypy-True/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_use_python_mypy-True/.algokit.toml +++ b/tests_generated/test_use_python_mypy-True/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_use_python_mypy-True/smart_contracts/helpers/build.py b/tests_generated/test_use_python_mypy-True/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_use_python_mypy-True/smart_contracts/helpers/build.py +++ b/tests_generated/test_use_python_mypy-True/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_use_python_mypy-True/tests/hello_world_test.py b/tests_generated/test_use_python_mypy-True/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_use_python_mypy-True/tests/hello_world_test.py +++ b/tests_generated/test_use_python_mypy-True/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100 diff --git a/tests_generated/test_use_python_pytest-False/.algokit.toml b/tests_generated/test_use_python_pytest-False/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_use_python_pytest-False/.algokit.toml +++ b/tests_generated/test_use_python_pytest-False/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_use_python_pytest-False/smart_contracts/helpers/build.py b/tests_generated/test_use_python_pytest-False/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_use_python_pytest-False/smart_contracts/helpers/build.py +++ b/tests_generated/test_use_python_pytest-False/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_use_python_pytest-True/.algokit.toml b/tests_generated/test_use_python_pytest-True/.algokit.toml index 77dfd4bf..4a26acfd 100644 --- a/tests_generated/test_use_python_pytest-True/.algokit.toml +++ b/tests_generated/test_use_python_pytest-True/.algokit.toml @@ -1,5 +1,5 @@ [algokit] -min_version = "v1.7.3" +min_version = "v1.8.0" [deploy] command = "poetry run python -m smart_contracts deploy" diff --git a/tests_generated/test_use_python_pytest-True/smart_contracts/helpers/build.py b/tests_generated/test_use_python_pytest-True/smart_contracts/helpers/build.py index 201e5d66..753727bf 100644 --- a/tests_generated/test_use_python_pytest-True/smart_contracts/helpers/build.py +++ b/tests_generated/test_use_python_pytest-True/smart_contracts/helpers/build.py @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path: if result.returncode: if "No such command" in result.stdout: raise Exception( - "Could not generate typed client, requires AlgoKit 1.1 or " + "Could not generate typed client, requires AlgoKit 1.8.0 or " "later. Please update AlgoKit" ) else: diff --git a/tests_generated/test_use_python_pytest-True/tests/hello_world_test.py b/tests_generated/test_use_python_pytest-True/tests/hello_world_test.py index 8bf3cda4..24541e36 100644 --- a/tests_generated/test_use_python_pytest-True/tests/hello_world_test.py +++ b/tests_generated/test_use_python_pytest-True/tests/hello_world_test.py @@ -35,10 +35,10 @@ def test_says_hello(hello_world_client: HelloWorldClient) -> None: def test_simulate_says_hello_with_correct_budget_consumed( hello_world_client: HelloWorldClient, algod_client: AlgodClient ) -> None: - atc = hello_world_client.compose().hello(name="World").hello(name="Jane").atc - - result = atc.simulate(algod_client) + result = ( + hello_world_client.compose().hello(name="World").hello(name="Jane").simulate() + ) assert result.abi_results[0].return_value == "Hello, World" assert result.abi_results[1].return_value == "Hello, Jane" - assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] == 98 + assert result.simulate_response["txn-groups"][0]["app-budget-consumed"] < 100