bf7654f043459b7c103de175a9162fdfefaf50f5,app/tests/participants_tests/test_emails.py,,test_new_registration_email,#Any#Any#Any#,12

Before Change


        assert challenge_set.challenge.short_name in email.subject
        assert approval_link in email.alternatives[0][0]
    else:
        with pytest.raises(IndexError):
            // No emails if no review
            // noinspection PyStatementEffect
            mail.outbox[-1]

After Change


        )

        admin_emails = [
            e for e in mail.outbox if challenge_set.admin.email in e.to
        ]
        assert len(admin_emails) == 1
        email = admin_emails[0]

        assert challenge_set.admin.email in email.to
        assert "new participation request" in email.subject.lower()
        assert challenge_set.challenge.short_name in email.subject
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: comic/grand-challenge.org
Commit Name: bf7654f043459b7c103de175a9162fdfefaf50f5
Time: 2020-02-04
Author: code@jmsmkn.com
File Name: app/tests/participants_tests/test_emails.py
Class Name:
Method Name: test_new_registration_email


Project Name: ray-project/ray
Commit Name: dcb9e03fde3116f7c43787947ea6f0b37ddb3210
Time: 2020-09-08
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_placement_group.py
Class Name:
Method Name: test_atomic_creation


Project Name: mne-tools/mne-python
Commit Name: 826ddd2f669fb35e574698042378c83e9b1217ca
Time: 2021-01-14
Author: dan@mccloy.info
File Name: mne/viz/tests/test_topo.py
Class Name:
Method Name: test_plot_joint