Update to 4.8 [CI SKIP]

This commit refs #4945.
This commit is contained in:
Javier Uribe 2018-06-27 12:53:02 +02:00
parent 80158ab051
commit 1db80533e0
4 changed files with 17 additions and 17 deletions

View File

@ -7,7 +7,8 @@ pipeline:
image: ${IMAGE}
environment:
- CFLAGS=-O0
- TOX_TESTENV_PASSENV=CFLAGS
- DB_CACHE=/cache
- TOX_TESTENV_PASSENV=CFLAGS DB_CACHE
- POSTGRESQL_URI=postgresql://postgres@postgresql:5432/
commands:
- pip install tox

View File

@ -1,30 +1,28 @@
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
import unittest
from trytond.tests.test_tryton import ModuleTestCase
from trytond.tests.test_tryton import ModuleTestCase, with_transaction
from trytond.tests.test_tryton import suite as test_suite
from trytond.transaction import Transaction
from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT
from trytond.pool import Pool
class PartyCardReportTestCase(ModuleTestCase):
"""Test Party Card Report module"""
module = 'party_card_report'
def setUp(self):
super(PartyCardReportTestCase, self).setUp()
self.party = POOL.get('party.party')
@with_transaction()
def test0010party_card_report(self):
'Test party label report'
with Transaction().start(DB_NAME, USER, context=CONTEXT):
party_card_report1, = self.party.create([{
'name': 'Party 1',
}])
report = POOL.get('party.card_report', type='report')
oext, content, _, _ = report.execute([party_card_report1.id], {})
self.assertEqual(oext, 'odt')
self.assertTrue(content)
pool = Pool()
Party = pool.get('party.party')
report = pool.get('party.card_report', type='report')
party_card_report1, = Party.create([{
'name': 'Party 1',
}])
oext, content, _, _ = report.execute([party_card_report1.id], {})
self.assertEqual(oext, 'odt')
self.assertTrue(content)
def suite():

View File

@ -7,6 +7,7 @@ deps =
{py27,py34,py35,py36}-postgresql: psycopg2 >= 2.5
pypy-postgresql: psycopg2cffi >= 2.5
mysql: MySQL-python
sqlite: sqlitebck
setenv =
sqlite: TRYTOND_DATABASE_URI={env:SQLITE_URI:sqlite://}
postgresql: TRYTOND_DATABASE_URI={env:POSTGRESQL_URI:postgresql://}

View File

@ -1,5 +1,5 @@
[tryton]
version=4.2.0
version=4.8.0
depends:
ir
res