mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-31 04:57:25 +01:00 
			
		
		
		
	auto-t: rename testHiddenNetwork's test class
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.
This commit is contained in:
		
							parent
							
								
									679cea02af
								
							
						
					
					
						commit
						72fac7f1b8
					
				| @ -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) | ||||
|  | ||||
| @ -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) | ||||
| 
 | ||||
|  | ||||
| @ -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: | ||||
|  | ||||
| @ -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) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Prestwood
						James Prestwood