From 5f146cf8bb4c86da93b91e995f556c79c08811ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 3 Apr 2012 20:06:50 +0200 Subject: [PATCH] Fix pep8 and pyflakes --- __tryton__.py | 12 ++++++------ tests/test_carrier.py | 7 +++++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/__tryton__.py b/__tryton__.py index 95ff8f301c..f4a682c787 100644 --- a/__tryton__.py +++ b/__tryton__.py @@ -2,12 +2,12 @@ #This file is part of Tryton. The COPYRIGHT file at the top level of #this repository contains the full copyright notices and license terms. { - 'name' : 'Carrier', - 'name_es_ES' : 'Transportista', + 'name': 'Carrier', + 'name_es_ES': 'Transportista', 'name_de_DE': 'Frachtführer', 'name_fr_FR': 'Transporteur', - 'version' : '2.3.0', - 'author' : 'B2CK', + 'version': '2.3.0', + 'author': 'B2CK', 'email': 'info@b2ck.com', 'website': 'http://www.tryton.org/', 'description': 'Define carriers.', @@ -16,13 +16,13 @@ - Ermöglicht die Definition von Frachtführern. ''', 'description_fr_FR': 'Définit des transporteurs.', - 'depends' : [ + 'depends': [ 'ir', 'res', 'party', 'product', ], - 'xml' : [ + 'xml': [ 'carrier.xml', ], 'translation': [ diff --git a/tests/test_carrier.py b/tests/test_carrier.py index 234f57aeb7..c3d813d10a 100644 --- a/tests/test_carrier.py +++ b/tests/test_carrier.py @@ -1,7 +1,8 @@ #!/usr/bin/env python #This file is part of Tryton. The COPYRIGHT file at the top level of #this repository contains the full copyright notices and license terms. -import sys, os +import sys +import os DIR = os.path.abspath(os.path.normpath(os.path.join(__file__, '..', '..', '..', '..', '..', 'trytond'))) if os.path.isdir(DIR): @@ -32,9 +33,11 @@ class CarrierTestCase(unittest.TestCase): ''' test_depends() + def suite(): suite = trytond.tests.test_tryton.suite() - suite.addTests(unittest.TestLoader().loadTestsFromTestCase(CarrierTestCase)) + suite.addTests(unittest.TestLoader().loadTestsFromTestCase( + CarrierTestCase)) return suite if __name__ == '__main__':