コード例 #1
0
ファイル: test_login.py プロジェクト: mhdnazari/inception
 def mockup(cls):
     session = cls.create_session()
     cls.member = Member(
         email='*****@*****.**',
         name='user_name',
         family='family',
         password='******',
         description='description',
         role='member',
     )
     session.add(cls.member)
     session.commit()
コード例 #2
0
 def mockup(cls):
     cls.member = Member(
         name='member name',
         family='member family',
         email='*****@*****.**',
         _password='******',
         description='description',
         role='member',
     )
     session = cls.create_session()
     session.add(cls.member)
     session.commit()
コード例 #3
0
 def mockup(cls):
     session = cls.create_session()
     cls.member = Member(
         name='Member Name',
         family='Member Family',
         email='*****@*****.**',
         password='******',
         description='Member description',
         role='member',
     )
     session.add(cls.member)
     session.commit()
コード例 #4
0
    def mockup(cls):
        session = cls.create_session()
        cls.member = Member(
            name='mehdi',
            family='nazari',
            email='*****@*****.**',
            password='******',
            role='member',
        )
        session.add(cls.member)
        session.commit()

        cls.business = Business(
            title='Business title',
            address='Business address',
            area='Business area',
            phone='9352117155',
            member_id=1,
        )
        session.add(cls.business)
        session.commit()