diff --git a/hy_odoo/test.hy b/hy_odoo/test.hy index eb020e3..e9ccfe4 100644 --- a/hy_odoo/test.hy +++ b/hy_odoo/test.hy @@ -18,10 +18,17 @@ " Hy Odoo Tests Helpers and Macros " (defmacro o-assert-equal [left right] `(.assertEqual self ~left ~right)) +(defmacro o-assert-not-equal [left right] `(.assertNotEqual self ~left ~right)) (defmacro o-assert-true [val] `(.assertTrue self ~val)) (defmacro o-assert-false [val] `(.assertFalse self ~val)) +(defmacro o-assert-is [left right] `(.assertIs self ~left ~right)) +(defmacro o-assert-is-not [left right] `(.assertIsNot self ~left ~right)) +(defmacro o-assert-is-none [val] `(.assertIsNone self ~val)) +(defmacro o-assert-is-not-none [val] `(.assertIsNotNone self ~val)) (defmacro o-assert-in [left right] `(.assertIn self ~left ~right)) (defmacro o-assert-not-in [left right] `(.assertNotIn self ~left ~right)) +(defmacro o-assert-is-instance [left right] `(.assertIsInstance self ~left ~right)) +(defmacro o-assert-not-is-instance [left right] `(.assertNotIsInstance self ~left ~right)) (defmacro o-assert-raises [Error] `(.assertRaises self ~Error)) (defmacro odo-assert-raises [Error body] diff --git a/setup.py b/setup.py index 93deeae..297034d 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name="hy_odoo", - version="0.6.0-pre", + version="0.6.0", packages=find_packages(), package_data={ 'hy_odoo': ['*.hy'],