@@ -59,7 +59,7 @@ def test_configuration_2fa_view_totp_not_enabled(api_client, data_fixture):
5959 assert response .status_code == HTTP_200_OK
6060 assert response_json == {
6161 "backup_codes" : [],
62- "enabled " : False ,
62+ "is_enabled " : False ,
6363 "provisioning_qr_code" : AnyStr (),
6464 "provisioning_url" : AnyStr (),
6565 "type" : "totp" ,
@@ -81,7 +81,7 @@ def test_configuration_2fa_view_totp_enabled(api_client, data_fixture):
8181 assert response .status_code == HTTP_200_OK
8282 assert response_json == {
8383 "backup_codes" : [],
84- "enabled " : True ,
84+ "is_enabled " : True ,
8585 "provisioning_qr_code" : "" ,
8686 "provisioning_url" : "" ,
8787 "type" : "totp" ,
@@ -188,7 +188,7 @@ def test_configure_totp_2fa_view(api_client, data_fixture):
188188 assert response .status_code == HTTP_200_OK , response_json
189189 assert response_json == {
190190 "backup_codes" : [],
191- "enabled " : False ,
191+ "is_enabled " : False ,
192192 "provisioning_qr_code" : AnyStr (),
193193 "provisioning_url" : AnyStr (),
194194 "type" : "totp" ,
@@ -214,7 +214,7 @@ def test_configure_totp_2fa_view(api_client, data_fixture):
214214 assert response .status_code == HTTP_200_OK , response_json
215215 assert response_json == {
216216 "backup_codes" : AnyList (),
217- "enabled " : True ,
217+ "is_enabled " : True ,
218218 "provisioning_qr_code" : "" ,
219219 "provisioning_url" : "" ,
220220 "type" : "totp" ,
@@ -239,7 +239,7 @@ def test_configure_totp_2fa_view_confirmation_failed_invalidcode(
239239 assert response .status_code == HTTP_200_OK , response_json
240240 assert response_json == {
241241 "backup_codes" : [],
242- "enabled " : False ,
242+ "is_enabled " : False ,
243243 "provisioning_qr_code" : AnyStr (),
244244 "provisioning_url" : AnyStr (),
245245 "type" : "totp" ,
@@ -295,7 +295,7 @@ def test_configure_totp_2fa_view_replaces_previous_configuration(
295295 assert response .status_code == HTTP_200_OK , response_json
296296 assert response_json == {
297297 "backup_codes" : [],
298- "enabled " : False ,
298+ "is_enabled " : False ,
299299 "provisioning_qr_code" : AnyStr (),
300300 "provisioning_url" : AnyStr (),
301301 "type" : "totp" ,
@@ -316,7 +316,7 @@ def test_configure_totp_2fa_view_replaces_previous_configuration(
316316 assert response .status_code == HTTP_200_OK , response_json2
317317 assert response_json2 == {
318318 "backup_codes" : [],
319- "enabled " : False ,
319+ "is_enabled " : False ,
320320 "provisioning_qr_code" : AnyStr (),
321321 "provisioning_url" : AnyStr (),
322322 "type" : "totp" ,
0 commit comments