def setup_class(cls): """ Add database fixtures """ build_country(id=1, name="Canada") r10 = build_restaurateur(id=10, mail="*****@*****.**") build_restaurant(id=12, restaurateur=r10) db.session.commit()
def setup_class(cls): """ Add database fixtures """ c10 = build_country(id=10, name="Canada") r1 = build_restaurateur(id=10) r2 = build_restaurateur(id=15) r3 = build_restaurateur(id=20) r4 = build_restaurateur(id=25) build_restaurant(id=5, name="La banquise", restaurateur=r1) build_restaurant(id=7, name="Le tigre rouge", restaurateur=r3) build_restaurant(id=9, name="Le lion du sud", restaurateur=r4) build_restaurant(id=11, name="Le lion du sud") build_restaurant(id=12, name="Les rois mages", country=c10) db.session.commit()
def setup_class(cls): """ Add database fixtures """ c1 = build_country(id=1, name="Canada") # Test 1 build_restaurateur(id=5) # Test 2 build_restaurateur(id=6) build_restaurant(id=2) # Test r7 = build_restaurateur(id=7) r8 = build_restaurateur(id=8) build_restaurant(id=3, restaurateur=r8) # Test without country r9 = build_restaurateur(id=9, country=c1) db.session.commit()
def setup_class(cls): """ Add database fixtures """ c1 = build_country(id=1, name="Canada") build_entrepreneur(id=5) db.session.commit()
def setup_class(cls): """ Add database fixtures """ c1 = build_country(id=1, name="Canada") build_address(id=5) db.session.commit()
def setup_class(cls): """ Add database fixtures """ build_country(id=1) db.session.commit()
def setup_class(cls): """ Add database fixtures """ build_country(id=1, name="Canada") build_client(id=10, mail="*****@*****.**") db.session.commit()
def setup_class(cls): """ Add database fixtures """ build_country(id=1) build_country(id=2) db.session.commit()
def setup_class(cls): """ Add database fixtures """ build_country(id=1, name="Canada") build_restaurateur(id=33) db.session.commit()
def setup_class(cls): """ Add database fixtures """ build_country(id=1, name="Canada") db.session.commit()
def setup_class(cls): """ Add database fixtures """ build_country(id=1, name="Canada") build_livreur(id=10, mail="*****@*****.**") db.session.commit()
def setup_class(cls): """ Add database fixtures """ country = build_country(id=1) build_client(id=1, country=country) db.session.commit()