Cleanup tests
This commit is contained in:
parent
508b985ed9
commit
fadfc5b3b1
|
@ -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 *
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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']
|
||||||
|
|
6
setup.py
6
setup.py
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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():
|
||||||
|
|
Loading…
Reference in New Issue