Cleanup tests

This commit is contained in:
jmartin 2014-11-07 14:19:25 +01:00
parent e76754c050
commit e1beffb79d
6 changed files with 20 additions and 32 deletions

View File

@ -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

View File

@ -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 *

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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):