-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* runs python tests installing ~everything (grep -v 'website_version\|l10n\|hw_\|theme') * removes unused code Side-changes necessary for the pytest runner to work: * remove incorrect import * add @skipif annotations for tests which used to be implicitly skipped (not imported and not found by the runner) but are found by the pytest collector * added __init__ files to test directories: test directories *must* valid but unimported python packages otherwise pytest kinda goes screwy
- Loading branch information
Showing
18 changed files
with
258 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,2 @@ | ||
#Accounting tests written in python should extend the class AccountingTestCase. | ||
#See its doc for more info. | ||
|
||
from . import test_account_customer_invoice | ||
from . import test_account_move_closed_period | ||
from . import test_account_supplier_invoice | ||
from . import test_account_validate_account_move | ||
from . import test_bank_statement_reconciliation | ||
#TODO re-enableand fix this test | ||
#from . import test_bank_stmt_reconciliation_widget_ui | ||
from . import test_chart_of_account | ||
from . import test_fiscal_position | ||
from . import test_manual_reconciliation | ||
from . import test_payment | ||
from . import test_reconciliation | ||
from . import test_search | ||
from . import test_tax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
addons/account/tests/test_bank_stmt_reconciliation_widget_ui.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import pytest | ||
from openerp.tests import HttpCase | ||
|
||
class TestUi(HttpCase): | ||
post_install = True | ||
at_install = False | ||
|
||
@pytest.mark.skipif(reason="broken test, not imported previously") | ||
def test_01_admin_bank_statement_reconciliation(self): | ||
self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('bank_statement_reconciliation', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.bank_statement_reconciliation", login="admin") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
|
||
import pytest | ||
import openerp.tests | ||
|
||
@openerp.tests.common.at_install(False) | ||
@openerp.tests.common.post_install(True) | ||
class TestUi(openerp.tests.HttpCase): | ||
|
||
@pytest.mark.skipif(reason="Wrong directory, & not imported -> not previously run and now failing") | ||
def test_01_pos_basic_order(self): | ||
self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('pos_basic_order', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.pos_basic_order", login="admin") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import pytest | ||
import openerp.tests | ||
|
||
@openerp.tests.common.at_install(False) | ||
@openerp.tests.common.post_install(True) | ||
class TestUi(openerp.tests.HttpCase): | ||
@pytest.mark.skipif(reason="Not previously imported -> not working and not run") | ||
def test_01_admin_forum_tour(self): | ||
self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('question', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.question", login="admin") | ||
|
||
@pytest.mark.skipif(reason="Not previously imported -> not working and not run") | ||
def test_02_demo_question(self): | ||
self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('forum_question', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.forum_question", login="demo") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
95a131b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xmo-odoo Any chance support for pytest to be retaken any time (sooner or later)? There is excellent camptocamp's pytest-odoo, but I'm not sure how complete the support would be with all the extra odoo testing things?
/cc @guewen