Beispiel #1
0
def get_organisation():
    """
    Return organisation set up on this instance. It creates it if none exists.
    """
    organisation = Organisation.query.first()
    if organisation is None:
        organisation = Organisation.create(name="Kitsu")
    return organisation.present()
Beispiel #2
0
 def generate_fixture_organisation(self):
     self.organisation = Organisation.create(name="My Studio",
                                             hours_by_day=8,
                                             use_original_file_name=False)