@@ -107,7 +107,7 @@ def setUp(self):
107107 Device .objects .create (
108108 user = t ,
109109 active = True ,
110- is_logged_in = True ,
110+ active_session = True ,
111111 registration_id = "caM8sSvLQKmX4Iai1xGb9w:APA91bGhzu3DYeYLTh-M9elzrhK492V0J3wDrsFsUDaw13v3Wxzb_9YbemsnMTb3N7_GilKwtS73NtbywSloNRo2alfpIMu29FKszZYr6WxoNdGao6PGNRf4kS1tKCiEAZgFvMkdLkgT"
112112 )
113113
@@ -615,7 +615,7 @@ def test_device_is_created_if_not_exist_on_new_report(self):
615615 self .assertEqual (device .os_version , "testVersion" )
616616 self .assertEqual (device .os_locale , "es-ES" )
617617 self .assertEqual (device .mobile_app , report .mobile_app )
618- self .assertEqual (device .is_logged_in , True )
618+ self .assertEqual (device .active_session , True )
619619 self .assertEqual (device .last_login , timezone .now ())
620620
621621 self .assertIsNone (device .registration_id )
@@ -631,7 +631,7 @@ def test_device_with_model_null_is_updated_on_new_report(self):
631631 user = user ,
632632 model = None ,
633633 active = True ,
634- is_logged_in = True ,
634+ active_session = True ,
635635 last_login = timezone .now ()- timedelta (days = 1 )
636636 )
637637 self .assertIsNone (device .model )
@@ -663,7 +663,7 @@ def test_device_with_model_null_is_updated_on_new_report(self):
663663 self .assertEqual (device .os_version , "testVersion" )
664664 self .assertEqual (device .os_locale , "es-ES" )
665665 self .assertEqual (device .mobile_app , mobile_app )
666- self .assertTrue (device .is_logged_in )
666+ self .assertTrue (device .active_session )
667667 self .assertTrue (device .active )
668668 self .assertEqual (device .last_login , timezone .now ())
669669 self .assertEqual (device .registration_id , fcm_token )
@@ -676,7 +676,7 @@ def test_device_with_model_is_updated_on_new_report(self):
676676 user = user ,
677677 model = "test_model" ,
678678 active = True ,
679- is_logged_in = True ,
679+ active_session = True ,
680680 last_login = timezone .now ()- timedelta (days = 1 )
681681 )
682682 self .assertIsNone (device .type )
@@ -708,7 +708,7 @@ def test_device_with_model_is_updated_on_new_report(self):
708708 self .assertEqual (device .os_version , "testVersion" )
709709 self .assertEqual (device .os_locale , "es-ES" )
710710 self .assertEqual (device .mobile_app , mobile_app )
711- self .assertEqual (device .is_logged_in , True )
711+ self .assertEqual (device .active_session , True )
712712 self .assertEqual (device .last_login , timezone .now ())
713713
714714 def test_POST_with_not_valid_version_number_raise_400 (self ):
@@ -977,7 +977,7 @@ def setUp(self):
977977 Device .objects .create (
978978 user = t ,
979979 active = True ,
980- is_logged_in = True ,
980+ active_session = True ,
981981 registration_id = 'caM8sSvLQKmX4Iai1xGb9w:APA91bGhzu3DYeYLTh-M9elzrhK492V0J3wDrsFsUDaw13v3Wxzb_9YbemsnMTb3N7_GilKwtS73NtbywSloNRo2alfpIMu29FKszZYr6WxoNdGao6PGNRf4kS1tKCiEAZgFvMkdLkgT'
982982 )
983983
@@ -1943,7 +1943,7 @@ def test_device_is_updated_if_previous_model_exist_and_new_model_None_also(self)
19431943 model = "test_model" ,
19441944 registration_id = "fcm_token" ,
19451945 active = True ,
1946- is_logged_in = True ,
1946+ active_session = True ,
19471947 last_login = timezone .now () - timedelta (days = 1 )
19481948 )
19491949 _ = Report .objects .create (
@@ -1975,7 +1975,7 @@ def test_device_is_updated_if_previous_model_exist_and_new_model_None_also(self)
19751975 model = None ,
19761976 registration_id = "new_fcm_token" ,
19771977 active = True ,
1978- is_logged_in = True ,
1978+ active_session = True ,
19791979 last_login = timezone .now () - timedelta (minutes = 1 )
19801980 )
19811981
@@ -1984,7 +1984,7 @@ def test_device_is_updated_if_previous_model_exist_and_new_model_None_also(self)
19841984 model = None ,
19851985 registration_id = "new_fcm_token2" ,
19861986 active = True ,
1987- is_logged_in = True ,
1987+ active_session = True ,
19881988 last_login = timezone .now ()
19891989 )
19901990
@@ -2376,7 +2376,7 @@ def test_post_fcm_token_creates_new_device_if_no_device_exist(self):
23762376 registration_id = fcm_token
23772377 )
23782378 self .assertTrue (device .active )
2379- self .assertTrue (device .is_logged_in )
2379+ self .assertTrue (device .active_session )
23802380 self .assertEqual (device .last_login , timezone .now ())
23812381 self .assertIsNone (device .model )
23822382
@@ -2390,7 +2390,7 @@ def test_post_fcm_token_updates_device_with_same_registration_id(self):
23902390 user = self .tiga_user ,
23912391 registration_id = fcm_token ,
23922392 active = True ,
2393- is_logged_in = True ,
2393+ active_session = True ,
23942394 last_login = timezone .now () - timedelta (days = 1 )
23952395 )
23962396
@@ -2411,7 +2411,7 @@ def test_post_fcm_token_updates_device_with_same_registration_id(self):
24112411
24122412 self .assertEqual (device .registration_id , fcm_token )
24132413 self .assertTrue (device .active )
2414- self .assertTrue (device .is_logged_in )
2414+ self .assertTrue (device .active_session )
24152415 self .assertEqual (device .last_login , timezone .now ())
24162416
24172417
0 commit comments