Delete no longer existing "framed" from inquiry model (#64)

This commit is contained in:
Anders Gustafsson
2023-01-11 10:44:08 +01:00
committed by GitHub
parent 1bf3765809
commit 0633f6315d
2 changed files with 4 additions and 5 deletions
-1
View File
@@ -17,7 +17,6 @@ class Inquiry(db.Model):
price_retouch = db.Column(db.Numeric) price_retouch = db.Column(db.Numeric)
width = db.Column(db.Integer) width = db.Column(db.Integer)
height = db.Column(db.Integer) height = db.Column(db.Integer)
framed = db.Column(db.Integer, nullable=False, default=0)
dealer_store_id = db.Column( dealer_store_id = db.Column(
"dealer_store", "dealer_store",
db.Integer, db.Integer,
+4 -4
View File
@@ -263,10 +263,10 @@ class TestPrice(unittest2.TestCase):
) )
def test_wallpaper_kit_price(self): def test_wallpaper_kit_price(self):
self.assertEqual(143.2, wallpaper_kit_price(market=sweden, rounded=False, inc_vat=False)) self.assertEqual(159.2, wallpaper_kit_price(market=sweden, rounded=False, inc_vat=False))
self.assertEqual(179.0, wallpaper_kit_price(market=sweden, rounded=False, inc_vat=True)) self.assertEqual(199.0, wallpaper_kit_price(market=sweden, rounded=False, inc_vat=True))
self.assertEqual(18.0, wallpaper_kit_price(market=us)) self.assertEqual(21.0, wallpaper_kit_price(market=us))
self.assertEqual(169.0, wallpaper_kit_price(market=denmark)) self.assertEqual(197.0, wallpaper_kit_price(market=denmark))
class TestPriceWithPriceAdjustment(unittest2.TestCase): class TestPriceWithPriceAdjustment(unittest2.TestCase):