mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
[IMP] *: removed utf-8 headers, changed icon and site
* company model test, country model test as in v8 * png logo instead of svg, removed Python 2 utf-8 headers [UPD] squashed administrative commits
This commit is contained in:
committed by
Alexis de Lattre
parent
e419e9e3a8
commit
5f9f95c17d
22
intrastat_base/tests/test_all.py
Normal file
22
intrastat_base/tests/test_all.py
Normal file
@@ -0,0 +1,22 @@
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestIntrastatBase(TransactionCase):
|
||||
"""Tests for this module"""
|
||||
|
||||
def test_10_countries(self):
|
||||
# check if only EU countries have the 'intrastat' bit set
|
||||
france = self.env.ref('base.fr')
|
||||
self.assertTrue(france.intrastat)
|
||||
brazil = self.env.ref('base.br')
|
||||
self.assertFalse(brazil.intrastat)
|
||||
|
||||
def test_20_company(self):
|
||||
# add 'Demo user' to intrastat_remind_user_ids
|
||||
demo_user = self.env.ref('base.user_demo')
|
||||
demo_company = self.env.ref('base.main_company')
|
||||
demo_company.write({
|
||||
'intrastat_remind_user_ids': [(6, False, [demo_user.id])]
|
||||
})
|
||||
# then check if intrastat_email_list contains the email of the user
|
||||
self.assertEquals(demo_company.intrastat_email_list, demo_user.email)
|
||||
Reference in New Issue
Block a user