Skip to content

Commit

Permalink
change tests without explicit python
Browse files Browse the repository at this point in the history
  • Loading branch information
mafalb committed Jan 17, 2024
1 parent 5ab21c8 commit d976e3d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/unit/plugins/filter/test_package_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@
)


@pytest.mark.parametrize('in_list, out_list', TEST_CASES)
def test_package_list(in_list, out_list):
package_list(in_list)
for req in out_list:
assert req in in_list, "'{req}' is not in '{res}'".format(req=req, res=in_list)
def test_package_list():
version = package_list(['ansible-core'])
assert len(version.split('.')) == 3, "Not correct length {v}".format(v=version)


@pytest.mark.parametrize(
Expand Down

0 comments on commit d976e3d

Please sign in to comment.