[REF]Yaltik DSL directories refactoring + makefile

This commit is contained in:
Fabien BOURGEOIS 2020-05-07 13:39:50 +02:00
parent 5c4c0fe6e3
commit b9d62b7c68
7 changed files with 32 additions and 5 deletions

9
yaltik_dsl/Makefile Normal file
View File

@ -0,0 +1,9 @@
.PHONY: clean
clean:
find . -name '*.pyc' -delete
find . -name '__pycache__' -delete
.PHONY: test
test:
python2 tests/test_xml_base.py
python2 tests/test_odoo.py

View File

@ -15,4 +15,4 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from . import odoo_dsl
from . import src

View File

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
# Copyright 2020 Fabien Bourgeois <fabien@yaltik.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from . import odoo_dsl

View File

@ -17,7 +17,7 @@
""" Odoo XML DSL """
from xml_base import xmlroot, xmln
from .xml_base import xmlroot, xmln
# XML helpers functions and macros

View File

@ -19,8 +19,8 @@
import unittest
import xml.etree.ElementTree as ET
from xml_base import XMLDictElement
import odoo_dsl as od
from src.xml_base import XMLDictElement
import src.odoo_dsl as od
class TestOdooBase(unittest.TestCase):
""" Odoo Helpers tests """

View File

@ -21,7 +21,7 @@ from functools import partial
import unittest
import xml.etree.ElementTree as ET
from os import unlink
from xml_base import xmln, xmlroot, xmlchild, xml_write
from src.xml_base import xmln, xmlroot, xmlchild, xml_write
class TestXMLBase(unittest.TestCase):