server/test/unittest_msplanner.py
changeset 6654 18d159a2d1ba
parent 6649 29f8e5c35392
child 6673 5eb2f1f2c277
equal deleted inserted replaced
6653:52d1568af412 6654:18d159a2d1ba
  2294         assert repo.sources_by_uri['cards'].support_relation('multisource_crossed_rel')
  2294         assert repo.sources_by_uri['cards'].support_relation('multisource_crossed_rel')
  2295         assert 'multisource_crossed_rel' in repo.sources_by_uri['cards'].cross_relations
  2295         assert 'multisource_crossed_rel' in repo.sources_by_uri['cards'].cross_relations
  2296     _test = test_plan
  2296     _test = test_plan
  2297 
  2297 
  2298 
  2298 
  2299     def test_crossed_relation_eid_1_noninvariant(self):
       
  2300         repo._type_source_cache[999999] = ('Note', 'cards', 999999)
       
  2301         self.set_debug('DBG_MS')
       
  2302         self._test('Any Y,YT WHERE X eid %(x)s, X multisource_crossed_rel Y, Y type YT',
       
  2303                    [],
       
  2304                    {'x': 999999})
       
  2305 
       
  2306     def test_linked_external_entities(self):
  2299     def test_linked_external_entities(self):
  2307         repo._type_source_cache[999999] = ('Tag', 'system', 999999)
  2300         repo._type_source_cache[999999] = ('Tag', 'system', 999999)
  2308         self._test('Any X,XT WHERE X is Card, X title XT, T tags X, T eid %(t)s',
  2301         self._test('Any X,XT WHERE X is Card, X title XT, T tags X, T eid %(t)s',
  2309                    [('FetchStep',
  2302                    [('FetchStep',
  2310                      [('Any X,XT WHERE X title XT, X is Card', [{'X': 'Card', 'XT': 'String'}])],
  2303                      [('Any X,XT WHERE X title XT, X is Card', [{'X': 'Card', 'XT': 'String'}])],