@@ -32,7 +32,7 @@ def test_simple(self) -> None:
3232 group1 ,
3333 GroupHistoryStatus .RESOLVED ,
3434 user_id = self .user .id ,
35- prev_history = gh1 ,
35+ prev_history_date = gh1 . date_added ,
3636 date_added = before_now (days = 2 ),
3737 )
3838
@@ -47,7 +47,7 @@ def test_simple(self) -> None:
4747 group2 ,
4848 GroupHistoryStatus .RESOLVED ,
4949 user_id = self .user .id ,
50- prev_history = gh2 ,
50+ prev_history_date = gh2 . date_added ,
5151 )
5252 today = str (now ().date ())
5353 yesterday = str ((now () - timedelta (days = 1 )).date ())
@@ -72,15 +72,15 @@ def test_simple(self) -> None:
7272 group2 ,
7373 GroupHistoryStatus .RESOLVED ,
7474 user_id = self .user .id ,
75- prev_history = gh2 ,
75+ prev_history_date = gh2 . date_added ,
7676 )
7777
7878 # making sure it doesnt bork anything
7979 self .create_group_history (
8080 group2 ,
8181 GroupHistoryStatus .DELETED ,
8282 user_id = self .user .id ,
83- prev_history = gh2 ,
83+ prev_history_date = gh2 . date_added ,
8484 )
8585 # Make sure that if we have a `GroupHistory` row with no prev history then we don't crash.
8686 self .create_group_history (
@@ -114,7 +114,7 @@ def test_filter_by_environment(self) -> None:
114114 group1 ,
115115 GroupHistoryStatus .RESOLVED ,
116116 user_id = self .user .id ,
117- prev_history = gh1 ,
117+ prev_history_date = gh1 . date_added ,
118118 date_added = before_now (days = 2 ),
119119 )
120120
0 commit comments