|
@@ -67,14 +67,14 @@ class LeRelationTestCase(TestCase):
|
67
|
67
|
for i in range(3):
|
68
|
68
|
self.assertEqual(filter_res[i], res[i], "%s != %s"%(filter_res, res))
|
69
|
69
|
|
70
|
|
- @unittest.skip("Wait LeRelation._prepare_filters() and LeRelation.delete() to unskip")
|
|
70
|
+ # @unittest.skip("Wait LeRelation._prepare_filters() and LeRelation.delete() to unskip")
|
71
|
71
|
@patch('DataSource.dummy.leapidatasource.DummyDatasource.delete')
|
72
|
72
|
def test_delete(self, dsmock):
|
73
|
73
|
""" Testing LeHierarch insert method """
|
74
|
74
|
from dyncode import LeCrud, Publication, Numero, Personnes, LeObject, Rubrique, LeHierarch, LeRelation
|
75
|
75
|
|
76
|
|
- LeRelation.delete([LeRelation.sup_filter(Numero(42)), 'nature = "parent"'], 'LeHierarch')
|
77
|
|
- dsmock.assert_called_once_with(LeHierarch, [('lesup', '=', Numero(42)), ('nature','=','parent')])
|
|
76
|
+ LeRelation.delete([LeRelation.sup_filter(Numero(42)), 'nature = "parent"'], LeHierarch)
|
|
77
|
+ dsmock.assert_called_once_with(LeHierarch, [('lesup', '=', Numero(42)), ('nature','=','"parent"')])
|
78
|
78
|
dsmock.reset_mock()
|
79
|
79
|
|
80
|
80
|
|