Skip to content

Commit

Permalink
[NEW] OCA Tests enable
Browse files Browse the repository at this point in the history
[FIX] pep8

[FIX] pep8

[FIX] pep8
  • Loading branch information
mileo committed Nov 23, 2015
1 parent 1e4bf5f commit 423067a
Show file tree
Hide file tree
Showing 33 changed files with 141 additions and 33 deletions.
7 changes: 7 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
languages:
JavaScript: true
Python: true
exclude_paths:
- "__unported__/*"
- "*/__openerp__.py" # because this is fed to eval
- "*/migrations/*" # without OpenUpgrade, repetitions can be necessary
77 changes: 77 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
language: python
sudo: false
cache:
apt: true
directories:
- $HOME/.cache/pip

python:
- "2.7"

addons:
apt:
# only add the two lines below if you need wkhtmltopdf for your tests
# sources:
# - pov-wkhtmltopdf
# Search your sources alias here:
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
packages:
- expect-dev # provides unbuffer utility
- python-lxml # because pip installation is slow
- python-simplejson
- python-serial
- python-yaml
# Search your packages here:
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
# - wkhtmltopdf # only add if needed and check the before_install section below

# set up an X server to run wkhtmltopdf.
#before_install:
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"

env:
global:
- VERSION="8.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
- TRANSIFEX_USER='[email protected]'
# This line contains the encrypted transifex password
# To encrypt transifex password, install travis ruby utils with:
# $ gem install travis --user-install
# and use:
# $ travis encrypt TRANSIFEX_PASSWORD=your-password -r owner/project
- secure: PjP88tPSwimBv4tsgn3UcQAD1heK/wcuSaSfhi2xUt/jSrOaTmWzjaW2gH/eKM1ilxPXwlPGyAIShJ2JJdBiA97hQufOeiqxdkWDctnNVVEDx2Tk0BiG3PPYyhXPgUZ+FNOnjZFF3pNWvzXTQaB0Nvz8plqp93Ov/DEyhrCxHDs=
# Use the following lines if you need to manually change the transifex project slug or/and the transifex organization.
# The default project slug is owner-repo_name-version (with dash in the version string).
# The default organization is the owner of the repo.
# The default fill up resources (TM) is True.
# The default team is 23907. https://www.transifex.com/organization/oca/team/23907/
# - TRANSIFEX_PROJECT_SLUG=
# - TRANSIFEX_ORGANIZATION=
# - TRANSIFEX_FILL_UP_RESOURCES=
# - TRANSIFEX_TEAM=

matrix:
- LINT_CHECK="1"
- TRANSIFEX="1"
- TESTS="1" ODOO_REPO="odoo/odoo"
- TESTS="1" ODOO_REPO="OCA/OCB"
# either use the two lines above or the two below. Don't change the default if
# it's not necessary (it is only necessary if modules in your repository can't
# be installed in the same database. And you get a huge speed penalty in your
# tests)
# - TESTS="1.0" ODOO_REPO="odoo/odoo" UNIT_TEST="1"
# - TESTS="1.0" ODOO_REPO="OCA/OCB" UNIT_TEST="1"

virtualenv:
system_site_packages: true

install:
- 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

script:
- travis_run_tests

after_success:
- travis_after_tests_success
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# OCA Guidelines

Please follow the official guide from the [OCA Guidelines page](https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md).

## Project Specific Guidelines

This project does not have specific coding guidelines.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3


Account Banking Brazillian - Payments Export Infrastructure
=============================================================

Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_banking_payment_cnab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
#
##############################################################################

import wizard
from . import wizard
from . import model
2 changes: 1 addition & 1 deletion l10n_br_account_banking_payment_cnab/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
# ###########################################################################
#
# Author: Luis Felipe Mileo
Expand Down
1 change: 0 additions & 1 deletion l10n_br_account_banking_payment_cnab/febraban/cnab.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def get_cnab(bank, cnab_type='240'):
elif cnab_type == '500':
from .pag_for.pag_for500 import PagFor500
return PagFor500.get_bank(bank)
pass
else:
return False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ def __init__(self):
@staticmethod
def get_bank(bank):
if bank == '341':
from bancos.itau import Itau240
from .bancos.itau import Itau240
return Itau240
elif bank == '237':
from bancos.bradesco import Bradesco240
from .bancos.bradesco import Bradesco240
return Bradesco240
elif bank == '104':
from bancos.cef import Cef240
from .bancos.cef import Cef240
return Cef240
elif bank == '033':
from bancos.santander import Santander240
from .bancos.santander import Santander240
return Santander240
else:
return Cnab240
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

from . import pag_for500
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self):
@staticmethod
def get_bank(bank):
if bank == '237':
from bancos.bradesco import BradescoPagFor
from .bancos.bradesco import BradescoPagFor
return BradescoPagFor
else:
return PagFor500
Expand Down Expand Up @@ -121,8 +121,6 @@ def _prepare_segmento(self, line):

prefixo, sulfixo = self.cep(line.partner_id.zip)
return {
'vencimento_titulo': self.format_date(
line.ml_maturity_date),
'especie_titulo': 8,
# TODO: Código adotado para identificar o título de cobrança. 8
# é Nota de cŕedito comercial
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_banking_payment_cnab/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-

from . import payment_order
from . import l10n_br_CnabSequence
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
# #############################################################################
#
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
# #############################################################################
#
#
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_banking_payment_cnab/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
# ###########################################################################
#
# Author: Luis Felipe Mileo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_boleto/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Payment Boleto module for Odoo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_boleto/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Payment Boleto module for Odoo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_boleto/boleto/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Payment Boleto module for Odoo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_boleto/boleto/document.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Payment Boleto module for Odoo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_boleto/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Payment Boleto module for Odoo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_boleto/models/account_invoice.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Payment Boleto module for Odoo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_boleto/models/account_move_line.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Payment Boleto module for Odoo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_boleto/models/payment_mode.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Payment Boleto module for Odoo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_boleto/models/res_company.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Payment Boleto module for Odoo
Expand Down
4 changes: 2 additions & 2 deletions l10n_br_account_payment_boleto/reports/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Payment Boleto module for Odoo
Expand All @@ -20,4 +20,4 @@
#
##############################################################################

import report
from . import report
2 changes: 1 addition & 1 deletion l10n_br_account_payment_boleto/reports/report.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Account Payment Boleto module for Odoo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_mode/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Odoo Brazil Account Payment Partner module for Odoo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_mode/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Odoo Brazil Account Payment Partner module for Odoo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_mode/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Odoo Brazil Account Payment Partner module for Odoo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_mode/models/account_move_line.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Odoo Brazil Account Payment Partner module for Odoo
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_mode/models/payment_mode.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
# #############################################################################
#
# Account Payment Partner module for OpenERP
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account_payment_mode/report/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Odoo Brazil Account Payment Partner module for Odoo
Expand Down
17 changes: 17 additions & 0 deletions oca_dependencies.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# List the OCA project dependencies, one per line
# Add a repository url and branch if you need a forked version
#
# Examples
# ========
#
# To depend on the standard version of sale-workflow, use:
# sale-workflow
#
# To explicitely give the URL of a fork, and still use the version specified in
# .travis.yml, use:
# sale-workflow https://github.com/OCA/sale-workflow
#
# To provide both the URL and a branch, use:
# sale-workflow https://github.com/OCA/sale-workflow branchname
bank-payment https://github.com/OCA/bank-payment.git 8.0
l10n-brazil https://github.com/OCA/l10n-brazil.git 8.0

0 comments on commit 423067a

Please sign in to comment.