Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/p/o/portfoliyo-HEAD/portfoliyo/tests/notifications/render/test_base.py   portfoliyo(Download)
 
        record.added_to_village(recip, other_rel.elder, rel.student)
        record.new_teacher(recip, other_rel.elder, rel.student)
 
        assert base.send(recip.id)
 
        record.added_to_village(recip, other_rel.elder, other_rel.student)
        record.new_teacher(recip, other_rel.elder, rel.student)
 
        assert base.send(recip.id)
            to_profile=rel.student)
 
        record.new_teacher(recip, other_rel.elder, rel.student)
 
        assert base.send(recip.id)
                factories.RelationshipFactory.create(
                    from_profile=teacher, to_profile=rel.student)
                record.new_teacher(recip, teacher, rel.student)
 
        assert base.send(recip.id)

src/p/o/portfoliyo-HEAD/portfoliyo/tests/notifications/test_record.py   portfoliyo(Download)
def test_new_teacher(mock_record, requested):
    mock_profile = mock.Mock(id=2, notify_joined_my_village=requested)
    mock_teacher = mock.Mock(id=3)
    mock_student = mock.Mock(id=4)
    record.new_teacher(mock_profile, mock_teacher, mock_student)