Skip to content

Commit

Permalink
Change the assert statement to just check that the list is non-empty,…
Browse files Browse the repository at this point in the history
… assuming there is always one interface
  • Loading branch information
MKLeb authored and s0undt3ch committed May 29, 2023
1 parent 3d5c849 commit 8016a09
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/pytests/unit/utils/test_win_network.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import logging

import pytest

import salt.utils.win_network as win_network
from tests.support.mock import MagicMock, patch

log = logging.getLogger(__name__)

pytestmark = [pytest.mark.skip_unless_on_windows]


Expand Down Expand Up @@ -338,5 +334,4 @@ def test__get_base_properties_undefined_adapter():

def test__get_network_interfaces_no_error():
ret = win_network._get_network_interfaces()
log.debug("_get_network_interfaces return value: %s", ret)
assert isinstance(ret, list)
assert len(ret) > 0

0 comments on commit 8016a09

Please sign in to comment.