[REF]Yaltik DSL directories refactoring + makefile
This commit is contained in:
parent
5c4c0fe6e3
commit
b9d62b7c68
9
yaltik_dsl/Makefile
Normal file
9
yaltik_dsl/Makefile
Normal 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
|
@ -15,4 +15,4 @@
|
|||||||
# You should have received a copy of the GNU Affero General Public License
|
# 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/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from . import odoo_dsl
|
from . import src
|
||||||
|
18
yaltik_dsl/src/__init__.py
Normal file
18
yaltik_dsl/src/__init__.py
Normal 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
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
""" Odoo XML DSL """
|
""" Odoo XML DSL """
|
||||||
|
|
||||||
from xml_base import xmlroot, xmln
|
from .xml_base import xmlroot, xmln
|
||||||
|
|
||||||
# XML helpers functions and macros
|
# XML helpers functions and macros
|
||||||
|
|
@ -19,8 +19,8 @@
|
|||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
from xml_base import XMLDictElement
|
from src.xml_base import XMLDictElement
|
||||||
import odoo_dsl as od
|
import src.odoo_dsl as od
|
||||||
|
|
||||||
class TestOdooBase(unittest.TestCase):
|
class TestOdooBase(unittest.TestCase):
|
||||||
""" Odoo Helpers tests """
|
""" Odoo Helpers tests """
|
@ -21,7 +21,7 @@ from functools import partial
|
|||||||
import unittest
|
import unittest
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
from os import unlink
|
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):
|
class TestXMLBase(unittest.TestCase):
|
Loading…
x
Reference in New Issue
Block a user