Browse Source

[FIX] tests get stalled on travis

pull/470/head
David 6 years ago
parent
commit
3eac25e73b
  1. 17
      .travis.yml
  2. 9
      partner_financial_risk/tests/test_partner_financial_risk.py

17
.travis.yml

@ -1,17 +1,19 @@
language: python
sudo: false
cache: pip
cache:
apt: true
directories:
- $HOME/.cache/pip
addons:
postgresql: "9.5"
apt:
packages:
- expect-dev # provides unbuffer utility
- python-lxml # because pip installation is slow
language: python
python:
- "2.7"
- "2.7.13"
env:
global:
@ -25,11 +27,8 @@ env:
- TESTS="1" ODOO_REPO="odoo/odoo"
- TESTS="1" ODOO_REPO="OCA/OCB"
virtualenv:
system_site_packages: true
install:
- git clone https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly

9
partner_financial_risk/tests/test_partner_financial_risk.py

@ -2,15 +2,18 @@
# Copyright 2016 Carlos Dauden <carlos.dauden@tecnativa.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import SavepointCase
from odoo.tests import common
from odoo import fields
class TestPartnerFinancialRisk(SavepointCase):
@common.at_install(False)
@common.post_install(True)
class TestPartnerFinancialRisk(common.SavepointCase):
@classmethod
def setUpClass(cls):
super(TestPartnerFinancialRisk, cls).setUpClass()
cls.env.user.groups_id |= cls.env.ref('account.group_account_manager')
cls.env.user.groups_id |= cls.env.ref(
'account.group_account_manager')
type_revenue = cls.env.ref('account.data_account_type_revenue')
type_receivable = cls.env.ref('account.data_account_type_receivable')
tax_group_taxes = cls.env.ref('account.tax_group_taxes')

Loading…
Cancel
Save