def test_get_basket(): basket = BasketModel(reference_number='test_number', owner_name='owner') db.session.add(basket) db.session.commit() result = DatabaseInterface.get_basket_by_reference_number( 'test_number') assert isinstance(result, Basket)
def test_get_basket_with_correct_content(cls): cls._create_dummy_basket() result = DatabaseInterface.get_basket_by_reference_number( 'test_number') result.get_all_prices()