From 21a47b614d1bd1e989195adedb1f5b709f5fbfee Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Thu, 7 Dec 2023 09:36:47 -0500 Subject: [PATCH] chore: move venom tests to `tests/unit/compiler` (#3684) the `tests/compiler` directory was moved to `tests/unit/` in 4dd47e302fc538c but this seems to have been missed in a merge during work on venom (cbac5aba53f87b) --- tests/functional/codegen/integration/test_crowdfund.py | 5 ++++- tests/{ => unit}/compiler/venom/test_duplicate_operands.py | 0 tests/{ => unit}/compiler/venom/test_multi_entry_block.py | 0 .../compiler/venom/test_stack_at_external_return.py | 0 4 files changed, 4 insertions(+), 1 deletion(-) rename tests/{ => unit}/compiler/venom/test_duplicate_operands.py (100%) rename tests/{ => unit}/compiler/venom/test_multi_entry_block.py (100%) rename tests/{ => unit}/compiler/venom/test_stack_at_external_return.py (100%) diff --git a/tests/functional/codegen/integration/test_crowdfund.py b/tests/functional/codegen/integration/test_crowdfund.py index 47c63dc015..2083e62610 100644 --- a/tests/functional/codegen/integration/test_crowdfund.py +++ b/tests/functional/codegen/integration/test_crowdfund.py @@ -63,10 +63,13 @@ def refund(): """ a0, a1, a2, a3, a4, a5, a6 = w3.eth.accounts[:7] + c = get_contract_with_gas_estimation_for_constants(crowdfund, *[a1, 50, 60]) + start_timestamp = w3.eth.get_block(w3.eth.block_number).timestamp + c.participate(transact={"value": 5}) assert c.timelimit() == 60 - assert c.deadline() - c.block_timestamp() == 59 + assert c.deadline() - start_timestamp == 60 assert not c.expired() assert not c.reached() c.participate(transact={"value": 49}) diff --git a/tests/compiler/venom/test_duplicate_operands.py b/tests/unit/compiler/venom/test_duplicate_operands.py similarity index 100% rename from tests/compiler/venom/test_duplicate_operands.py rename to tests/unit/compiler/venom/test_duplicate_operands.py diff --git a/tests/compiler/venom/test_multi_entry_block.py b/tests/unit/compiler/venom/test_multi_entry_block.py similarity index 100% rename from tests/compiler/venom/test_multi_entry_block.py rename to tests/unit/compiler/venom/test_multi_entry_block.py diff --git a/tests/compiler/venom/test_stack_at_external_return.py b/tests/unit/compiler/venom/test_stack_at_external_return.py similarity index 100% rename from tests/compiler/venom/test_stack_at_external_return.py rename to tests/unit/compiler/venom/test_stack_at_external_return.py