Skip to content

Commit fc5bcc5

Browse files
author
Sébastien Alix
committed
Unit tests updated
1 parent ab30193 commit fc5bcc5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_inspect.py

+8
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ def test_relations(self):
2626
attrs_whitelist=['*'], attrs_blacklist=[])
2727
self.assertIsInstance(graph, oerplib.service.inspect.relations.Relations)
2828

29+
def test_relations_maxdepth_null(self):
30+
graph = self.oerp.inspect.relations(['res.users'], maxdepth=0)
31+
self.assertIsInstance(graph, oerplib.service.inspect.relations.Relations)
32+
33+
def test_relations_maxdepth_negative(self):
34+
graph = self.oerp.inspect.relations(['res.users'], maxdepth=-1)
35+
self.assertIsInstance(graph, oerplib.service.inspect.relations.Relations)
36+
2937
def test_dependencies(self):
3038
graph = self.oerp.inspect.dependencies()
3139
self.assertIsInstance(

0 commit comments

Comments
 (0)