From 0b6455d9128eaa5ef4800c1eee282954cc3ea189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 3 Apr 2012 20:07:49 +0200 Subject: [PATCH] Fix pep8 and pyflakes --- __tryton__.py | 24 ++++++++++++------------ tests/test_stock_product_location.py | 4 +++- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/__tryton__.py b/__tryton__.py index 624535414e..cfd4ea3b59 100644 --- a/__tryton__.py +++ b/__tryton__.py @@ -1,15 +1,15 @@ #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" : "Stock Product Location", - "name_bg_BG" : "Местонахождение на наличност на продукт", + "name": "Stock Product Location", + "name_bg_BG": "Местонахождение на наличност на продукт", 'name_ca_ES': 'Ubicació d''estoc de producte', - "name_de_DE" : "Lagerverwaltung Artikel Lagerort", - "name_es_CO" : "Ubicación de existencias de producto", - "name_es_ES" : "Ubicación de existencias de producto", - "name_fr_FR" : "Emplacement de produit", - "version" : "2.3.0", - "author" : "B2CK", + "name_de_DE": "Lagerverwaltung Artikel Lagerort", + "name_es_CO": "Ubicación de existencias de producto", + "name_es_ES": "Ubicación de existencias de producto", + "name_fr_FR": "Emplacement de produit", + "version": "2.3.0", + "author": "B2CK", 'email': 'info@b2ck.com', 'website': 'http://www.tryton.org/', "description": '''Define default storage location by warehouse on product. @@ -20,8 +20,8 @@ inventory moves. на продукт по склад. Тези местонахождения ще бъдат използвани при пратки от доставчик за генериране на движения за инвентаризация. ''', - 'description_ca_ES': '''Defineix la ubicació del magatzem predeterminat pel -dipòsit i producte. Aquestes ubicacions s'utilitzaran en l'enviament de proveïdor + 'description_ca_ES': '''Defineix la ubicació del magatzem predeterminat pel +dipòsit i producte. Aquestes ubicacions s'utilitzaran en l'enviament de proveïdor per generar moviments d'inventari. ''', "description_de_DE": '''Standardlagerorte für Artikel @@ -41,12 +41,12 @@ Estas ubicaciones se utilizarán en el envio de proveedor para generar movimient Ces emplacements seront utilisés par les colisages fournisseurs pour générer les mouvements internes. ''', - "depends" : [ + "depends": [ "ir", "product", "stock", ], - "xml" : [ + "xml": [ "location.xml", "product.xml", ], diff --git a/tests/test_stock_product_location.py b/tests/test_stock_product_location.py index d4f72840d1..9099016a46 100644 --- a/tests/test_stock_product_location.py +++ b/tests/test_stock_product_location.py @@ -2,7 +2,8 @@ #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): @@ -33,6 +34,7 @@ class StockProductLocationTestCase(unittest.TestCase): ''' test_depends() + def suite(): suite = trytond.tests.test_tryton.suite() suite.addTests(unittest.TestLoader().loadTestsFromTestCase(