mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Actually sort the fixtures (#5510)
* Actually sort the fixtures I removed my more complicated fix but failed to actually put the sorted() call back in. * Sort by class name
This commit is contained in:
parent
97b584e261
commit
eae33c20f6
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
from __future__ import (absolute_import, division, print_function)
|
from __future__ import (absolute_import, division, print_function)
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
|
import operator
|
||||||
import itertools
|
import itertools
|
||||||
import json
|
import json
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -158,7 +159,7 @@ def test_op_get_field(mocker, op_fixture, output, expected, request):
|
||||||
("cli_class", "vault", "queries", "kwargs", "output", "expected"),
|
("cli_class", "vault", "queries", "kwargs", "output", "expected"),
|
||||||
(
|
(
|
||||||
(_cli_class, item["vault_name"], item["queries"], item.get("kwargs", {}), item["output"], item["expected"])
|
(_cli_class, item["vault_name"], item["queries"], item.get("kwargs", {}), item["output"], item["expected"])
|
||||||
for _cli_class in MOCK_ENTRIES
|
for _cli_class in sorted(MOCK_ENTRIES, key=operator.attrgetter("__name__"))
|
||||||
for item in MOCK_ENTRIES[_cli_class]
|
for item in MOCK_ENTRIES[_cli_class]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue