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()
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()
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()
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()