Browse Source

💚 pre-commit: auto cleanups

pull/155/head
Ivan Yelizariev 5 years ago
committed by Vincent Van Rossem
parent
commit
16129ba1cb
  1. 4
      pos_keyboard/__manifest__.py
  2. 7
      pos_keyboard/tests/test_pos_keyboard.py

4
pos_keyboard/__manifest__.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2015 igallyamov <https://github.com/igallyamov> # Copyright 2015 igallyamov <https://github.com/igallyamov>
# Copyright 2016 ufaks <https://github.com/ufaks> # Copyright 2016 ufaks <https://github.com/ufaks>
# Copyright 2016-2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev> # Copyright 2016-2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
@ -11,13 +10,14 @@
"category": "Point Of Sale", "category": "Point Of Sale",
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version={ODOO_BRANCH}", # "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version={ODOO_BRANCH}",
"images": ['images/keyboard.png'], "images": ['images/keyboard.png'],
"version": "10.0.1.1.5",
"version": "11.0.1.1.5",
"application": False, "application": False,
"author": "IT-Projects LLC, Ivan Yelizariev", "author": "IT-Projects LLC, Ivan Yelizariev",
"support": "apps@it-projects.info", "support": "apps@it-projects.info",
"website": "https://it-projects.info/team/yelizariev", "website": "https://it-projects.info/team/yelizariev",
"license": "LGPL-3", "license": "LGPL-3",
"price": 15.00, "price": 15.00,
"currency": "EUR", "currency": "EUR",

7
pos_keyboard/tests/test_pos_keyboard.py

@ -8,11 +8,12 @@ import odoo.tests
@odoo.tests.common.at_install(True) @odoo.tests.common.at_install(True)
@odoo.tests.common.post_install(True) @odoo.tests.common.post_install(True)
class TestUi(odoo.tests.HttpCase): class TestUi(odoo.tests.HttpCase):
def test_pos_keyboard(self): def test_pos_keyboard(self):
# without a delay there might be problems on the steps whilst opening a POS # without a delay there might be problems on the steps whilst opening a POS
# caused by a not yet loaded button's action # caused by a not yet loaded button's action
self.phantom_js("/web",
self.phantom_js(
"/web",
"odoo.__DEBUG__.services['web_tour.tour'].run('pos_keyboard_tour', 500)", "odoo.__DEBUG__.services['web_tour.tour'].run('pos_keyboard_tour', 500)",
"odoo.__DEBUG__.services['web_tour.tour'].tours.pos_keyboard_tour.ready", "odoo.__DEBUG__.services['web_tour.tour'].tours.pos_keyboard_tour.ready",
login="admin")
login="admin",
)
Loading…
Cancel
Save