Cleanup tests

This commit is contained in:
jmartin 2014-11-07 14:25:25 +01:00
parent 508b985ed9
commit fadfc5b3b1
7 changed files with 23 additions and 35 deletions

View File

@ -1 +1,3 @@
Version 3.4.0 - 2014-11-05

View File

@ -1,6 +1,6 @@
#This file is part internetdomain_invoice_standalone module for Tryton. # This file is part internetdomain_invoice_standalone 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 .internetdomain import * from .internetdomain import *

View File

@ -1,6 +1,6 @@
#This file is part internetdomain_invoice_standalone module for Tryton. # This file is part internetdomain_invoice_standalone 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.transaction import Transaction from trytond.transaction import Transaction
from trytond.pool import Pool, PoolMeta from trytond.pool import Pool, PoolMeta

View File

@ -1,6 +1,6 @@
#This file is part account_invoice_cancel module for Tryton. # This file is part account_invoice_cancel 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, PoolMeta from trytond.pool import Pool, PoolMeta
__all__ = ['InvoiceLine'] __all__ = ['InvoiceLine']

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python #!/usr/bin/env python
#This file is part internetdomain_invoice_standalone module for Tryton. # This file is part internetdomain_invoice_standalone 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
import os import os

View File

@ -1,6 +1,6 @@
#This file is part internetdomain_invoice_standalone module for Tryton. # This file is part internetdomain_invoice_standalone 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_internetdomain_invoice_standalone import suite from .test_internetdomain_invoice_standalone import suite

View File

@ -1,38 +1,24 @@
#!/usr/bin/env python #!/usr/bin/env python
#This file is part internetdomain_invoice_standalone module for Tryton. # This file is part internetdomain_invoice_standalone 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 InternentdomainInvoiceStandaloneTestCase(unittest.TestCase): class InternentdomainInvoiceStandaloneTestCase(unittest.TestCase):
''' 'Test Internetdomain Invoice Standalone module'
Test Internetdomain Invoice Standalone module.
'''
def setUp(self): def setUp(self):
trytond.tests.test_tryton.install_module('internetdomain_invoice_standalone') trytond.tests.test_tryton.install_module('internetdomain_invoice_standalone')
def test0005views(self): def test0005views(self):
''' 'Test views'
Test views.
'''
test_view('internetdomain_invoice_standalone') test_view('internetdomain_invoice_standalone')
def test0006depends(self): def test0006depends(self):
''' 'Test depends'
Test depends.
'''
test_depends() test_depends()
def suite(): def suite():