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

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

src/p/o/portfoliyo-HEAD/portfoliyo/tests/sms/test_hook.py   portfoliyo(Download)
        school_staff=True, name="Teacher Jane", code="ABCDEF")
    factories.TextSignupFactory.create(
        family__name="John Doe",
        family__phone=phone,
        family__invited_by=teacher,
        school_staff=True, name="Teacher Jane", code="ABCDEF")
    factories.TextSignupFactory.create(
        family__name="John Doe",
        family__phone=phone,
        family__invited_by=teacher,
        school_staff=True, name="Teacher Jane", code="ABCDEF")
    factories.TextSignupFactory.create(
        family__name="John Doe",
        family__phone=phone,
        family__invited_by=teacher,
        owner__school_staff=True, owner__name="Teacher Jane", code="ABCDEFG")
    factories.TextSignupFactory.create(
        family__name="John Doe",
        family__phone=phone,
        family__invited_by=group.owner,
        to_profile__name="Jimmy Doe")
    factories.TextSignupFactory.create(
        family__name="John Doe",
        family__phone=phone,
        family__invited_by=rel.elder,

src/p/o/portfoliyo-HEAD/portfoliyo/tests/model/village/test_models.py   portfoliyo(Download)
            )
        signup = factories.TextSignupFactory.create(
            teacher=rel1.elder,
            family=rel2.elder,
            student=rel1.student,

src/p/o/portfoliyo-HEAD/portfoliyo/tests/notifications/render/test_base.py   portfoliyo(Download)
            from_profile=recip, to_profile__name='A Student')
        signup = factories.TextSignupFactory.create(
            student=rel.student)
 
        record.new_parent(recip, signup)
            from_profile=recip, to_profile__name='A Student')
        signup = factories.TextSignupFactory.create(
            student=rel.student)
 
        record.new_parent(recip, signup)
    def test_new_parents(self, params, recip):
        context = {}
        for student_name, parent_name, role, group_name in params['scenario']:
            ts = factories.TextSignupFactory.create(
                teacher=recip, family__name=parent_name, family__role=role)

src/p/o/portfoliyo-HEAD/portfoliyo/tests/notifications/render/collectors/test_new_parent.py   portfoliyo(Download)
    def test_no_relationship(self, db):
        """If TextSignup parent/student relationship is gone, use role."""
        ts = factories.TextSignupFactory.create(family__role='Foo')
        signup = new_parent.Signup.from_textsignup(ts)
 
    def test_no_student(self, db):
        """Signups without students are not valid for notification."""
        ts = factories.TextSignupFactory.create()
        npc = new_parent.NewParentCollector(mock.Mock())
        with pytest.raises(new_parent.base.RehydrationFailed):