Skip to content

Commit

Permalink
Fixed planner tests
Browse files Browse the repository at this point in the history
Removed unused test
Changed str(MagicMock())
Removed extra line feeds
  • Loading branch information
asgibson committed Oct 11, 2023
1 parent 3adf4c5 commit 2d84335
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions test/onair/src/ai_components/test_planners_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,7 @@ def test_PlannersInterface__init__sets_instance_headers_to_given_headers_and_doe
# Assert
assert cut.headers == arg_headers

def test_PlannersInterface__init__throws_AttributeError_when_given_module_file_has_no_attribute_Plugin(mocker):
# Arrange
fake_module_name = MagicMock()
arg_headers = []

arg__ai_plugins = {MagicMock()}

# Act

# Assert

def test_PlannersInterfacee__init__sets_instance_ai_constructs_to_a_list_of_the_calls_AIPlugIn_with_plugin_and_given_headers_for_each_item_in_given__ai_plugins_when_given__ai_plugins_is_occupied(mocker):
def test_PlannersInterface__init__sets_instance_ai_constructs_to_a_list_of_the_calls_AIPlugIn_with_plugin_and_given_headers_for_each_item_in_given__ai_plugins_when_given__ai_plugins_is_occupied(mocker):
# Arrange
arg_headers = []
arg__ai_plugins = {}
Expand All @@ -58,11 +47,10 @@ def test_PlannersInterfacee__init__sets_instance_ai_constructs_to_a_list_of_the_
arg_headers.append(MagicMock())
num_fake_ai_plugins = pytest.gen.randint(1, 10) # arbitrary, from 1 to 10 (0 has own test)
for i in range(num_fake_ai_plugins):
arg__ai_plugins[str(MagicMock())] = str(MagicMock())
arg__ai_plugins[str(i)] = str(MagicMock())
fake_spec_list.append(MagicMock())
fake_module_list.append(MagicMock())


expected_ai_constructs = []
for i in range(num_fake_ai_plugins):
expected_ai_constructs.append(MagicMock())
Expand Down Expand Up @@ -128,5 +116,3 @@ def test_render_reasoning_does_nothing():

# Assert
assert result == None


0 comments on commit 2d84335

Please sign in to comment.