Skip to content

Commit a8780dc

Browse files
test: fix (and simplify) changed email address generation (ietf-tools#4919)
1 parent 4b1c10f commit a8780dc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

ietf/doc/tests.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,9 +1305,8 @@ def test_edit_authors_edit_fields(self):
13051305
basis=change_reason
13061306
)
13071307

1308-
old_email = new_email = draft.authors()[0].email()
1309-
while new_email == old_email:
1310-
new_email = EmailFactory(person=draft.authors()[0])
1308+
old_address = draft.authors()[0].email()
1309+
new_email = EmailFactory(person=draft.authors()[0], address=f'changed-{old_address}')
13111310
post_data['author-0-email'] = new_email.address
13121311
post_data['author-1-affiliation'] = 'University of Nowhere'
13131312
post_data['author-2-country'] = 'Chile'

0 commit comments

Comments
 (0)