Files
odoo_source/addons/stock/tests/test_report_tours.py
T
Rémy Voet (ryv) b33983d532 [REF] stock*,mrp*: clean setUp vs setUpClass
In a lot of test class, we use `setUp` instead of
`setUpClass`. `setUp` is execute for each test method and `setUpClass`
will be execute only once by Class (and use savepoint + rollback).

Then change setUp into setUpClass reduce the time to make all tests
and avoid to repeat this error for the future.

closes odoo/odoo#78082

Related: odoo/enterprise#21563
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2021-10-13 18:24:16 +00:00

17 lines
558 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
import odoo
from odoo.tests import Form, HttpCase, tagged
@tagged('-at_install', 'post_install')
class TestStockReportTour(HttpCase):
def _get_report_url(self):
return '/web#&model=product.template&action=stock.product_template_action_product'
def test_stock_route_diagram_report(self):
""" Open the route diagram report."""
url = self._get_report_url()
self.start_tour(url, 'test_stock_route_diagram_report', login='admin', timeout=180)