From e1beffb79d54a9394a62778f9ee2231e78acc9ff Mon Sep 17 00:00:00 2001 From: jmartin Date: Fri, 7 Nov 2014 14:19:25 +0100 Subject: [PATCH] Cleanup tests --- CHANGELOG | 2 ++ __init__.py | 6 +++--- base_external_mapping.py | 6 +++--- setup.py | 6 +++--- tests/__init__.py | 6 +++--- tests/test_base_external_mapping.py | 26 ++++++-------------------- 6 files changed, 20 insertions(+), 32 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index b799d56..3ac3be1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +Version 3.4.0 - 2014-11-05 + Version 2.6.0 - 2012-10-08 * Simplify module information with python configuration * Active Record diff --git a/__init__.py b/__init__.py index 3bde1e6..f4e7a2a 100644 --- a/__init__.py +++ b/__init__.py @@ -1,6 +1,6 @@ -#This file is part of base_external_mapping module for Tryton. -#The COPYRIGHT file at the top level of this repository contains -#the full copyright notices and license terms. +# This file is part of base_external_mapping module for Tryton. +# The COPYRIGHT file at the top level of this repository contains +# the full copyright notices and license terms. from trytond.pool import Pool from .base_external_mapping import * diff --git a/base_external_mapping.py b/base_external_mapping.py index 7e45ae6..0539d5b 100644 --- a/base_external_mapping.py +++ b/base_external_mapping.py @@ -1,6 +1,6 @@ -#This file is part of base_external_mapping module for Tryton. -#The COPYRIGHT file at the top level of this repository contains -#the full copyright notices and license terms. +# This file is part of base_external_mapping module for Tryton. +# The COPYRIGHT file at the top level of this repository contains +# the full copyright notices and license terms. from genshi.template import NewTextTemplate as TextTemplate from trytond.model import ModelView, ModelSQL, fields from trytond.pool import Pool diff --git a/setup.py b/setup.py index 2dec740..6280fef 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #!/usr/bin/env python -#This file is part base_external_mapping module for Tryton. -#The COPYRIGHT file at the top level of this repository contains -#the full copyright notices and license terms. +# This file is part base_external_mapping module for Tryton. +# The COPYRIGHT file at the top level of this repository contains +# the full copyright notices and license terms. from setuptools import setup import re diff --git a/tests/__init__.py b/tests/__init__.py index 0ab844c..ea40915 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,6 +1,6 @@ -#This file is part base_external_mapping module for Tryton. -#The COPYRIGHT file at the top level of this repository contains -#the full copyright notices and license terms. +# This file is part base_external_mapping module for Tryton. +# The COPYRIGHT file at the top level of this repository contains +# the full copyright notices and license terms. from .test_base_external_mapping import suite diff --git a/tests/test_base_external_mapping.py b/tests/test_base_external_mapping.py index e793bc0..b6d3f8a 100644 --- a/tests/test_base_external_mapping.py +++ b/tests/test_base_external_mapping.py @@ -1,16 +1,8 @@ #!/usr/bin/env python # -*- coding: UTF-8 -*- -#This file is part base_external_mapping module for Tryton. -#The COPYRIGHT file at the top level of this repository contains -#the full copyright notices and license terms. - -import sys -import os -DIR = os.path.abspath(os.path.normpath(os.path.join(__file__, - '..', '..', '..', '..', '..', 'trytond'))) -if os.path.isdir(DIR): - sys.path.insert(0, os.path.dirname(DIR)) - +# This file is partbase_external_mapping module for Tryton. +# The COPYRIGHT file at the top level of this repository contains +# the full copyright notices and license terms. import unittest from decimal import Decimal @@ -33,9 +25,7 @@ field_type = { class BaseExternalMappingTestCase(unittest.TestCase): - ''' - Test BaseExternalMapping module. - ''' + 'Test BaseExternalMapping module' def setUp(self): trytond.tests.test_tryton.install_module('product') @@ -48,15 +38,11 @@ class BaseExternalMappingTestCase(unittest.TestCase): self.product = POOL.get('product.product') def test0005views(self): - ''' - Test views. - ''' + 'Test views' test_view('base_external_mapping') def test0006depends(self): - ''' - Test depends. - ''' + 'Test depends' test_depends() def test0010create_mapping(self):