Odoo Test

# -*- coding: utf-8 -*-
from . import test_double_product
# -*- coding: utf-8 -*-import logging
import odoo
from odoo import api
from odoo.tests.common import SingleTransactionCase
from odoo.tests import tagged
_logger = logging.getLogger(__name__)
class TestUnsyncDeleted(SingleTransactionCase):
"""
Explain what the test is all about
"""
def test_double_product(self):
Product = self.env["product.template"]
p1 = Product.browse(1382)
price_before = p1.list_price
self.assertEqual(price_before, 10)
p1.double() price_after = p1.list_price
self.assertEqual(price_after, 20)
./odoo-bin c odoo.conf --test-enable --stop-after-init -p9069 -u mod1

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store