Skip to content

Commit

Permalink
MAINT: fix code-cov issue
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-mudaraddi committed Oct 13, 2023
1 parent d7dd174 commit f1bbf21
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
5 changes: 1 addition & 4 deletions tests/lib/openstack_query/mappings/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _server_side_any_in_test_case(
server_side_handler: ServerSideHandler,
client_side_handler: ClientSideHandler,
expected_mappings: Dict[PropEnum, str],
test_cases: Optional[Dict] = None,
test_cases: Dict,
):
"""
Tests server side handler mappings for ANY_IN preset are correct, and line up to the expected
Expand All @@ -129,9 +129,6 @@ def _server_side_any_in_test_case(
QueryPresetsGeneric.ANY_IN
)

if not test_cases:
test_cases = {"test1": "test1", "test2": "test2"}

assert all(
key_to_check in supported_props for key_to_check in expected_mappings
)
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/openstack_query/mappings/test_flavor_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

def test_get_runner_mapping():
"""
Tests get runner mapping returns a server runner
Tests get runner mapping returns a flavor runner
"""
assert FlavorMapping.get_runner_mapping() == FlavorRunner


def test_get_prop_mapping():
"""
Tests get prop mapping returns a server properties
Tests get prop mapping returns a flavor properties
"""
assert FlavorMapping.get_prop_mapping() == FlavorProperties

Expand Down
1 change: 1 addition & 0 deletions tests/lib/openstack_query/mappings/test_project_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def test_server_side_handler_mappings_any_in(server_side_any_in_mappings):
ProjectMapping.get_server_side_handler(),
ProjectMapping.get_client_side_handlers().generic_handler,
mappings,
{"test1": "test1", "test2": "test2"},
)


Expand Down
1 change: 1 addition & 0 deletions tests/lib/openstack_query/mappings/test_server_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def test_server_side_handler_mappings_any_in(server_side_any_in_mappings):
ServerMapping.get_server_side_handler(),
ServerMapping.get_client_side_handlers().generic_handler,
mappings,
{"test1": "test1", "test2": "test2"},
)


Expand Down
1 change: 1 addition & 0 deletions tests/lib/openstack_query/mappings/test_user_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def test_server_side_handler_mappings_any_in(server_side_any_in_mappings):
UserMapping.get_server_side_handler(),
UserMapping.get_client_side_handlers().generic_handler,
mappings,
{"test1": "test1", "test2": "test2"},
)


Expand Down

0 comments on commit f1bbf21

Please sign in to comment.