@@ -288,6 +288,7 @@ def test_post_validate_redirects(
288
288
pretend .call (
289
289
tag = EventTag .Account .LoginSuccess ,
290
290
ip_address = pyramid_request .remote_addr ,
291
+ request = pyramid_request ,
291
292
additional = {"two_factor_method" : None , "two_factor_label" : None },
292
293
)
293
294
]
@@ -351,6 +352,7 @@ def test_post_validate_no_redirects(
351
352
pretend .call (
352
353
tag = EventTag .Account .LoginSuccess ,
353
354
ip_address = pyramid_request .remote_addr ,
355
+ request = pyramid_request ,
354
356
additional = {"two_factor_method" : None , "two_factor_label" : None },
355
357
)
356
358
]
@@ -714,6 +716,7 @@ def test_totp_auth(
714
716
pretend .call (
715
717
tag = EventTag .Account .LoginSuccess ,
716
718
ip_address = pyramid_request .remote_addr ,
719
+ request = pyramid_request ,
717
720
additional = {"two_factor_method" : "totp" , "two_factor_label" : "totp" },
718
721
)
719
722
]
@@ -1157,6 +1160,7 @@ def test_recovery_code_auth(self, monkeypatch, pyramid_request, redirect_url):
1157
1160
pretend .call (
1158
1161
tag = EventTag .Account .LoginSuccess ,
1159
1162
ip_address = pyramid_request .remote_addr ,
1163
+ request = pyramid_request ,
1160
1164
additional = {
1161
1165
"two_factor_method" : "recovery-code" ,
1162
1166
"two_factor_label" : None ,
@@ -1165,6 +1169,7 @@ def test_recovery_code_auth(self, monkeypatch, pyramid_request, redirect_url):
1165
1169
pretend .call (
1166
1170
tag = EventTag .Account .RecoveryCodesUsed ,
1167
1171
ip_address = pyramid_request .remote_addr ,
1172
+ request = pyramid_request ,
1168
1173
),
1169
1174
]
1170
1175
assert pyramid_request .session .flash .calls == [
@@ -1411,11 +1416,13 @@ def _find_service(service=None, name=None, context=None):
1411
1416
pretend .call (
1412
1417
tag = EventTag .Account .AccountCreate ,
1413
1418
ip_address = db_request .remote_addr ,
1419
+ request = db_request ,
1414
1420
additional = {
"email" :
"[email protected] " },
1415
1421
),
1416
1422
pretend .call (
1417
1423
tag = EventTag .Account .LoginSuccess ,
1418
1424
ip_address = db_request .remote_addr ,
1425
+ request = db_request ,
1419
1426
additional = {"two_factor_method" : None , "two_factor_label" : None },
1420
1427
),
1421
1428
]
@@ -1524,6 +1531,7 @@ def test_request_password_reset(
1524
1531
pretend .call (
1525
1532
tag = EventTag .Account .PasswordResetRequest ,
1526
1533
ip_address = pyramid_request .remote_addr ,
1534
+ request = pyramid_request ,
1527
1535
)
1528
1536
]
1529
1537
@@ -1588,6 +1596,7 @@ def test_request_password_reset_with_email(
1588
1596
pretend .call (
1589
1597
tag = EventTag .Account .PasswordResetRequest ,
1590
1598
ip_address = pyramid_request .remote_addr ,
1599
+ request = pyramid_request ,
1591
1600
)
1592
1601
]
1593
1602
assert user_service .ratelimiters ["password.reset" ].test .calls == [
@@ -1663,6 +1672,7 @@ def test_request_password_reset_with_non_primary_email(
1663
1672
pretend .call (
1664
1673
tag = EventTag .Account .PasswordResetRequest ,
1665
1674
ip_address = pyramid_request .remote_addr ,
1675
+ request = pyramid_request ,
1666
1676
)
1667
1677
]
1668
1678
assert user_service .ratelimiters ["password.reset" ].test .calls == [
@@ -1762,6 +1772,7 @@ def test_password_reset_prohibited(
1762
1772
pretend .call (
1763
1773
tag = EventTag .Account .PasswordResetAttempt ,
1764
1774
ip_address = pyramid_request .remote_addr ,
1775
+ request = pyramid_request ,
1765
1776
)
1766
1777
]
1767
1778
@@ -3569,6 +3580,7 @@ def test_add_pending_github_oidc_publisher(self, monkeypatch, db_request):
3569
3580
pretend .call (
3570
3581
tag = EventTag .Account .PendingOIDCPublisherAdded ,
3571
3582
ip_address = "1.2.3.4" ,
3583
+ request = db_request ,
3572
3584
additional = {
3573
3585
"project" : "some-project-name" ,
3574
3586
"publisher" : pending_publisher .publisher_name ,
@@ -3802,6 +3814,7 @@ def test_delete_pending_oidc_publisher(self, monkeypatch, db_request):
3802
3814
pretend .call (
3803
3815
tag = EventTag .Account .PendingOIDCPublisherRemoved ,
3804
3816
ip_address = "1.2.3.4" ,
3817
+ request = db_request ,
3805
3818
additional = {
3806
3819
"project" : "some-project-name" ,
3807
3820
"publisher" : "GitHub" ,
0 commit comments