Cleanup tests

This commit is contained in:
jmartin 2014-11-07 14:23:04 +01:00
parent 978b7f7ecc
commit cf845ff038
8 changed files with 26 additions and 38 deletions

View file

@ -1,3 +1,5 @@
Version 3.4.0 - 2014-11-05
Version 2.6.0 - 2012-10-16 Version 2.6.0 - 2012-10-16
* Active Record * Active Record
* Simplify module information with python configuration * Simplify module information with python configuration

View file

@ -1,6 +1,6 @@
#This file is part electronic_mail_wizard module for Tryton. # This file is part electronic_mail_wizard module for Tryton.
#The COPYRIGHT file at the top level of this repository contains # The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms. # the full copyright notices and license terms.
from trytond.pool import Pool from trytond.pool import Pool
from .electronic_mail_wizard import * from .electronic_mail_wizard import *
from .template import * from .template import *

View file

@ -1,6 +1,6 @@
#This file is part electronic_mail_wizard module for Tryton. # This file is part electronic_mail_wizard module for Tryton.
#The COPYRIGHT file at the top level of this repository contains # The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms. # the full copyright notices and license terms.
from trytond.model import fields from trytond.model import fields
from trytond.pool import PoolMeta from trytond.pool import PoolMeta

View file

@ -1,6 +1,6 @@
#This file is part electronic_mail_wizard module for Tryton. # This file is part electronic_mail_wizard module for Tryton.
#The COPYRIGHT file at the top level of this repository contains # The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms. # the full copyright notices and license terms.
import mimetypes import mimetypes
from email.mime.multipart import MIMEMultipart from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText from email.mime.text import MIMEText

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
#This file is part electronic_mail_wizard module for Tryton. # This file is part electronic_mail_wizard module for Tryton.
#The COPYRIGHT file at the top level of this repository contains # The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms. # the full copyright notices and license terms.
from setuptools import setup from setuptools import setup
import re import re

View file

@ -1,6 +1,6 @@
#This file is part electronic_mail_wizard module for Tryton. # This file is part electronic_mail_wizard module for Tryton.
#The COPYRIGHT file at the top level of this repository contains # The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms. # the full copyright notices and license terms.
from trytond.model import fields from trytond.model import fields
from trytond.pool import Pool, PoolMeta from trytond.pool import Pool, PoolMeta
from trytond.pyson import Eval from trytond.pyson import Eval

View file

@ -1,6 +1,6 @@
#This file is part electronic_mail_wizard module for Tryton. # This file is part electronic_mail_wizard module for Tryton.
#The COPYRIGHT file at the top level of this repository contains # The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms. # the full copyright notices and license terms.
from .test_electronic_mail_wizard import suite from .test_electronic_mail_wizard import suite

View file

@ -1,38 +1,24 @@
#!/usr/bin/env python #!/usr/bin/env python
#This file is part electronic_mail_wizard module for Tryton. # This file is part electronic_mail_wizard module for Tryton.
#The COPYRIGHT file at the top level of this repository contains # The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms. # 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))
import unittest import unittest
import trytond.tests.test_tryton import trytond.tests.test_tryton
from trytond.tests.test_tryton import test_view, test_depends from trytond.tests.test_tryton import test_view, test_depends
class ElectronicMailWizardTestCase(unittest.TestCase): class ElectronicMailWizardTestCase(unittest.TestCase):
''' 'Test Helloword module'
Test Helloword module.
'''
def setUp(self): def setUp(self):
trytond.tests.test_tryton.install_module('electronic_mail_wizard') trytond.tests.test_tryton.install_module('electronic_mail_wizard')
def test0005views(self): def test0005views(self):
''' 'Test views'
Test views.
'''
test_view('electronic_mail_wizard') test_view('electronic_mail_wizard')
def test0006depends(self): def test0006depends(self):
''' 'Test depends'
Test depends.
'''
test_depends() test_depends()