@@ -55,12 +55,12 @@ def test_clean_config_dir(mocker, mock_GAM_CONFIG_PATH, mock_rmtree):
5555def test_init_admin_user_required ():
5656 args = Namespace ()
5757
58- with pytest .raises (ValueError , match = "admin_user is required" ):
58+ with pytest .raises (ValueError , match = "username is required" ):
5959 init (args )
6060
6161
6262def test_init_default (mock_clean_config_dir , mock_google_CallGAMCommand , mock_subprocess_call ):
63- args = Namespace (admin_user = "username" )
63+ args = Namespace (username = "username" )
6464 init (args )
6565
6666 assert mock_clean_config_dir .call_count == 0
@@ -69,7 +69,7 @@ def test_init_default(mock_clean_config_dir, mock_google_CallGAMCommand, mock_su
6969
7070
7171def test_init_gam (mock_GAM_CONFIG_PATH , mock_clean_config_dir , mock_google_CallGAMCommand ):
72- args = Namespace (admin_user = "username" , gam = True , gyb = False )
72+ args = Namespace (username = "username" , gam = True , gyb = False )
7373 init (args )
7474
7575 mock_clean_config_dir .assert_called_once ()
@@ -78,7 +78,7 @@ def test_init_gam(mock_GAM_CONFIG_PATH, mock_clean_config_dir, mock_google_CallG
7878
7979
8080def test_init_gyb (mock_GYB_CONFIG_PATH , mock_clean_config_dir , mock_subprocess_call ):
81- args = Namespace (admin_user = "username" , gam = False , gyb = True )
81+ args = Namespace (username = "username" , gam = False , gyb = True )
8282 init (args )
8383
8484 mock_clean_config_dir .assert_called_once ()
0 commit comments