def setUp(self): init_database('db.sqlite3') register(RegisteredUser('YoniYoni', '1234567878')) register(RegisteredUser('StoreManager1', '1234567878')) shop = Shop('My Shop', 'Active') ShopLogic.create_shop(shop, 'YoniYoni') UsersLogic.add_manager('YoniYoni', StoreManager('StoreManager1', 'My Shop', 1, 1, 1, 1, 1, 1, 1, 1))
def setUp(self): init_database('db.sqlite3') UsersLogic.register(RegisteredUser('ShaharBenS', "SsS0897SsS")) UsersLogic.update_details('ShaharBenS', 'AFG', 20, 'Male') UsersLogic.register(RegisteredUser('ShaharBenS2', "SsS0897SsS")) ShopLogic.create_shop(Shop('eBay', "Active"), 'ShaharBenS2') item1 = Item(1, 'eBay', 'banana', 'vegas', 'good', 10, 500, 'regular', None, 0, 0, 0) ItemsLogic.add_item_to_shop(item1, 'ShaharBenS2')
def setUp(self): init_database('db.sqlite3') username = '******' shop_name = 'My New Shop' register(RegisteredUser(username, '12341256')) # register user ShopLogic.create_shop(Shop.Shop(shop_name, 'Active'), username) # add shop ItemsLogic.add_item_to_shop( Item.Item(1, shop_name, 'milk', 'milk', 'keywords', 12, 100, 'regular', None, 0, 0, 0), username) ItemsLogic.add_item_to_shop( Item.Item(2, shop_name, 'glue', 'glue', 'keywords', 12, 100, 'regular', None, 0, 0, 0), username)
def setUp(self): init_database('db.sqlite3') register(RegisteredUser('TomerTomer', '1234567878')) shop = Shop('My Shop', 'Active') ShopLogic.create_shop(shop, 'TomerTomer') ItemsLogic.add_item_to_shop( Item(1, 'My Shop', 'milk', 'diary', 'good', 12, 100, 'regular', None, 0, 0, 0), 'TomerTomer') ItemsLogic.add_item_to_shop( Item(2, 'My Shop', 'steak', 'meat', 'bad', 12, 100, 'regular', None, 0, 0, 0), 'TomerTomer') ItemsLogic.add_item_to_shop( Item(3, 'My Shop', 'banana', 'fruit', 'best', 12, 100, 'regular', None, 0, 0, 0), 'TomerTomer') ItemsLogic.add_item_to_shop( Item(4, 'My Shop', 'water', 'drinks', 'one two', 12, 100, 'regular', None, 0, 0, 0), 'TomerTomer')
def setUp(self): init_database('db.sqlite3')
def setUp(self): init_database(DB_NAME)
def setUp(self): init_database(DB_NAME) UsersLogic.register(USER)