<commit_before>import os

import unittest2

import openerp.tests

inject = [
    ("openerp.website.Tour", os.path.join(os.path.dirname(__file__), '../../website/static/src/js/website.tour.js')),
    ("openerp.website.Tour.ShopTest", os.path.join(os.path.dirname(__file__), "../static/src/js/website.tour.sale.js")),
]

class TestUi(openerp.tests.HttpCase):
    def test_01_admin_shop_tour(self):
        #self.phantom_js("/", "openerp.website.Tour.run_test('shop')", "openerp.website.Tour.Shop", login="admin")
        # AssertionError: Error: Time overlaps to arrive to step 5: 'New product created'
        print 'FIXME TODO ERROR FAILED test_01_admin_shop_tour has been deactivated due to systematic errors'

    def test_02_admin_checkout(self):
        # self.phantom_js("/", "openerp.website.Tour.run_test('shop_buy_product')", "openerp.website.Tour", login="admin")
        # AssertionError: TypeError: 'undefined' is not an object (evaluating 'website.Tour.tours[id].run')
        print 'FIXME TODO ERROR FAILED test_02_admin_checkout has been deactivated due to systematic errors'

    @unittest2.expectedFailure
    def test_03_demo_checkout(self):
        self.phantom_js("/", "openerp.website.Tour.run_test('shop_buy_product')", "openerp.website.Tour.ShopTest", login="demo", inject=inject)

    @unittest2.expectedFailure
    def test_04_public_checkout(self):
        self.phantom_js("/", "openerp.website.Tour.run_test('shop_buy_product')", "openerp.website.Tour.ShopTest", inject=inject)
<commit_msg>[FIX] Uncomment tests which fail<commit_after>import os

import unittest2

import openerp.tests

inject = [
    ("openerp.website.Tour", os.path.join(os.path.dirname(__file__), '../../website/static/src/js/website.tour.js')),
    ("openerp.website.Tour.ShopTest", os.path.join(os.path.dirname(__file__), "../static/src/js/website.tour.sale.js")),
]

class TestUi(openerp.tests.HttpCase):
    def test_01_admin_shop_tour(self):
        self.phantom_js("/", "openerp.website.Tour.run_test('shop')", "openerp.website.Tour.Shop", login="admin")

    def test_02_admin_checkout(self):
        self.phantom_js("/", "openerp.website.Tour.run_test('shop_buy_product')", "openerp.website.Tour", login="admin")

    def test_03_demo_checkout(self):
        self.phantom_js("/", "openerp.website.Tour.run_test('shop_buy_product')", "openerp.website.Tour.ShopTest", login="demo", inject=inject)

    @unittest2.expectedFailure
    def test_04_public_checkout(self):
        self.phantom_js("/", "openerp.website.Tour.run_test('shop_buy_product')", "openerp.website.Tour.ShopTest", inject=inject)
{'fraction_non_alphanumeric': 0.15698345517506734, 'fraction_numerical': 0.010003847633705272, 'mean_word_length': 4.714285714285714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7302781', 'n_tokens_mistral': 970, 'n_tokens_neox': 877, 'n_words': 134}