@@ -55,12 +55,12 @@ def test_clean_config_dir(mocker, mock_GAM_CONFIG_PATH, mock_rmtree):
55
55
def test_init_admin_user_required ():
56
56
args = Namespace ()
57
57
58
- with pytest .raises (ValueError , match = "admin_user is required" ):
58
+ with pytest .raises (ValueError , match = "username is required" ):
59
59
init (args )
60
60
61
61
62
62
def test_init_default (mock_clean_config_dir , mock_google_CallGAMCommand , mock_subprocess_call ):
63
- args = Namespace (admin_user = "username" )
63
+ args = Namespace (username = "username" )
64
64
init (args )
65
65
66
66
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
69
69
70
70
71
71
def 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 )
73
73
init (args )
74
74
75
75
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
78
78
79
79
80
80
def 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 )
82
82
init (args )
83
83
84
84
mock_clean_config_dir .assert_called_once ()
0 commit comments