From fa6b16a41aa74c5ee0b01c8c4fcc6745e6edf8ff Mon Sep 17 00:00:00 2001 From: alexcere <48130030+alexcere@users.noreply.github.com> Date: Mon, 6 Jan 2025 16:20:04 +0100 Subject: [PATCH] #18 Fix library imports in tests --- tests/test_inline_function.py | 6 +++--- tests/test_merge_blocks.py | 4 ++-- tests/test_split_block.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_inline_function.py b/tests/test_inline_function.py index 46775efa..28f110ba 100644 --- a/tests/test_inline_function.py +++ b/tests/test_inline_function.py @@ -1,10 +1,10 @@ -from hypothesis import given, strategies as st +from hypothesis import given from parser.cfg_instruction import CFGInstruction from parser.cfg_block import CFGBlock from parser.cfg_block_list import CFGBlockList from parser.cfg_function import CFGFunction from parser.cfg_object import CFGObject -from parser.cfg_block_actions.inline_function import InlineFunction +from cfg_methods.cfg_block_actions.inline_function import InlineFunction from utils import cfg_instruction_list @@ -21,7 +21,7 @@ def test_inline_function_one_function(self, instructions): cfg_block_5 = CFGBlock("block_5", instructions[5*split_list_index:6*split_list_index], "terminal", dict()) cfg_block_6 = CFGBlock("block_6", instructions[6*split_list_index:7*split_list_index], "conditional", dict()) - function_cfg_block_list = CFGBlockList() + function_cfg_block_list = CFGBlockList("f") function_cfg_block_list.add_block(cfg_block_0) function_cfg_block_list.add_block(cfg_block_1) function_cfg_block_list.add_block(cfg_block_2) diff --git a/tests/test_merge_blocks.py b/tests/test_merge_blocks.py index 9087fccd..9a2320ba 100644 --- a/tests/test_merge_blocks.py +++ b/tests/test_merge_blocks.py @@ -1,7 +1,7 @@ -from hypothesis import given, strategies as st +from hypothesis import given from parser.cfg_block import CFGBlock from parser.cfg_block_list import CFGBlockList -from parser.cfg_block_actions.merge_blocks import MergeBlocks, merged_block_id +from cfg_methods.cfg_block_actions.merge_blocks import MergeBlocks, merged_block_id from utils import cfg_instruction_list diff --git a/tests/test_split_block.py b/tests/test_split_block.py index 28a2a4e9..f0a2c1ff 100644 --- a/tests/test_split_block.py +++ b/tests/test_split_block.py @@ -1,7 +1,7 @@ from hypothesis import given, strategies as st from parser.cfg_block import CFGBlock from parser.cfg_block_list import CFGBlockList -from parser.cfg_block_actions.split_block import SplitBlock +from cfg_methods.cfg_block_actions.split_block import SplitBlock from utils import cfg_instruction_list