diff mbox series

[2/3] auto-t: rename testHiddenNetwork's test class

Message ID 20220622230219.1557695-2-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/3] test-runner: exclude 'iwd-rtnl' from being enabled with --log | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood June 22, 2022, 11:02 p.m. UTC
This was copy pasted from the autoconnect test, and depending on
how the python module cache is ordered can incorrectly use the
wrong test class. This should nothappen because we insert
the paths to the head of the list but for consistency the class
should be named something that reflects what the test is doing.
---
 autotests/testHiddenNetworks/exceptions_test.py   | 4 ++--
 autotests/testHiddenNetworks/open_network_test.py | 4 ++--
 autotests/testHiddenNetworks/validation.py        | 2 +-
 autotests/testHiddenNetworks/wpa_network_test.py  | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/autotests/testHiddenNetworks/exceptions_test.py b/autotests/testHiddenNetworks/exceptions_test.py
index 0c151fcb..1c4722a6 100644
--- a/autotests/testHiddenNetworks/exceptions_test.py
+++ b/autotests/testHiddenNetworks/exceptions_test.py
@@ -6,7 +6,7 @@  import sys
 sys.path.append('../util')
 import iwd
 import validation
-from validation import TestConnectAutoConnect
+from validation import TestHiddenNetworks
 from iwd import IWD
 
 class TestWpaNetwork(unittest.TestCase):
@@ -23,7 +23,7 @@  class TestWpaNetwork(unittest.TestCase):
     '''
 
     def test_wpa(self):
-        tca = TestConnectAutoConnect()
+        tca = TestHiddenNetworks()
 
         tca.validate('UnExistingNetwork', False, iwd.NotFoundEx)
         tca.validate('ssidOverlap', False, iwd.ServiceSetOverlapEx)
diff --git a/autotests/testHiddenNetworks/open_network_test.py b/autotests/testHiddenNetworks/open_network_test.py
index 2cc0f75b..8645fdad 100644
--- a/autotests/testHiddenNetworks/open_network_test.py
+++ b/autotests/testHiddenNetworks/open_network_test.py
@@ -6,7 +6,7 @@  import sys
 sys.path.append('../util')
 import iwd
 import validation
-from validation import TestConnectAutoConnect
+from validation import TestHiddenNetworks
 from iwd import IWD
 
 class TestOpenNetwork(unittest.TestCase):
@@ -20,7 +20,7 @@  class TestOpenNetwork(unittest.TestCase):
     True                              True          Connection succeeds
     '''
     def test_open(self):
-        tca = TestConnectAutoConnect()
+        tca = TestHiddenNetworks()
         tca.validate('ssidHiddenOpen', False)
         tca.validate('ssidHiddenOpen', True)
 
diff --git a/autotests/testHiddenNetworks/validation.py b/autotests/testHiddenNetworks/validation.py
index 793b459f..2c005331 100644
--- a/autotests/testHiddenNetworks/validation.py
+++ b/autotests/testHiddenNetworks/validation.py
@@ -9,7 +9,7 @@  from iwd import IWD
 from iwd import PSKAgent
 from iwd import NetworkType
 
-class TestConnectAutoConnect(unittest.TestCase):
+class TestHiddenNetworks(unittest.TestCase):
 
     def check_connect_hidden_network(self, wd, device, ssid, throws):
         if not throws is None:
diff --git a/autotests/testHiddenNetworks/wpa_network_test.py b/autotests/testHiddenNetworks/wpa_network_test.py
index d8166b1b..a65fe1af 100644
--- a/autotests/testHiddenNetworks/wpa_network_test.py
+++ b/autotests/testHiddenNetworks/wpa_network_test.py
@@ -6,7 +6,7 @@  import sys
 sys.path.append('../util')
 import iwd
 import validation
-from validation import TestConnectAutoConnect
+from validation import TestHiddenNetworks
 from iwd import IWD
 
 class TestWpaNetwork(unittest.TestCase):
@@ -21,7 +21,7 @@  class TestWpaNetwork(unittest.TestCase):
     '''
 
     def test_wpa(self):
-        tca = TestConnectAutoConnect()
+        tca = TestHiddenNetworks()
         tca.validate('ssidHiddenWPA', False, None, True)
         tca.validate('ssidHiddenWPA', True, None, True)