Skip to content

Commit

Permalink
TST: test running sort_by with SortOrder string aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-mudaraddi committed Dec 4, 2023
1 parent c1d1df5 commit adf11b6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/lib/openstack_query/query_blocks/test_query_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ def test_parse_sort_by_with_string_aliases():
mock_prop_enum_cls = ServerProperties
instance = QueryParser(prop_enum_cls=mock_prop_enum_cls)

instance.parse_sort_by(
("server_id", SortOrder.ASC), ("server_name", SortOrder.DESC)
)
instance.parse_sort_by(("server_id", "asc"), ("server_name", "descending"))
assert instance.sort_by == {
ServerProperties.SERVER_ID: False,
ServerProperties.SERVER_NAME: True,
Expand Down

0 comments on commit adf11b6

Please sign in to comment.