Cleanup tests

This commit is contained in:
jmartin 2014-11-07 14:23:55 +01:00
parent d7fb8fa9f1
commit d260c33beb
8 changed files with 26 additions and 38 deletions

View file

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

View file

@ -1,6 +1,6 @@
#This file is part galatea_blog 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 galatea_blog 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 .galatea import *
from .blog import *

View file

@ -1,6 +1,6 @@
#This file is part galatea_blog 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 galatea_blog module for Tryton.
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
from trytond.model import ModelSQL, ModelView, fields
from trytond.pool import Pool
from trytond.transaction import Transaction

View file

@ -1,6 +1,6 @@
#This file is part galatea_blog 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 galatea_blog 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 PoolMeta
from trytond.model import fields
from trytond.pyson import Eval

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python
#This file is part galatea_blog 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 galatea_blog 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 galatea_blog 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 galatea_blog module for Tryton.
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
from .test_galatea_blog import suite

View file

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

View file

@ -1,6 +1,6 @@
#~ #This file is part galatea_blog 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 galatea_blog module for Tryton.
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
import logging
try: