Skip to content

Commit aba2067

Browse files
committed
fix tests and translations
1 parent ec9fb5a commit aba2067

File tree

3 files changed

+303
-165
lines changed

3 files changed

+303
-165
lines changed

tests/functional/manage/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_save_account(self, pyramid_services, user_service, db_request):
4141
db_request.path = "/manage/accounts/"
4242
db_request.POST = MultiDict({"name": "new name", "public_email": ""})
4343

44-
views.ManageAccountViews(db_request).save_account()
44+
views.ManageVerifiedAccountViews(db_request).save_account()
4545
user = user_service.get_user(user.id)
4646

4747
assert user.name == "new name"

tests/unit/manage/test_views.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ def test_reverify_email(self, monkeypatch):
580580
user=pretend.stub(id=pretend.stub(), username="username", name="Name"),
581581
remote_addr="0.0.0.0",
582582
path="request-path",
583+
route_path=pretend.call_recorder(lambda *a, **kw: "/foo/bar/"),
583584
)
584585
send_email = pretend.call_recorder(lambda *a: None)
585586
monkeypatch.setattr(views, "send_email_verification_email", send_email)
@@ -626,6 +627,7 @@ def test_reverify_email_ratelimit_exceeded(self, monkeypatch):
626627
user=pretend.stub(id=pretend.stub(), username="username", name="Name"),
627628
remote_addr="0.0.0.0",
628629
path="request-path",
630+
route_path=pretend.call_recorder(lambda *a, **kw: "/foo/bar/"),
629631
)
630632
send_email = pretend.call_recorder(lambda *a: None)
631633
monkeypatch.setattr(views, "send_email_verification_email", send_email)
@@ -690,6 +692,7 @@ def test_reverify_email_already_verified(self, monkeypatch):
690692
find_service=lambda *a, **kw: pretend.stub(),
691693
user=pretend.stub(id=pretend.stub()),
692694
path="request-path",
695+
route_path=pretend.call_recorder(lambda *a, **kw: "/foo/bar/"),
693696
)
694697
send_email = pretend.call_recorder(lambda *a: None)
695698
monkeypatch.setattr(views, "send_email_verification_email", send_email)

0 commit comments

Comments
 (0)