示例#1
0
 def test_create_attributions_list(self):
     entities_manager = mdl_base.entity_manager.find_by_user(self.user)
     entities = [entity_manager.entity for entity_manager in entities_manager]
     entities_with_descendants = mdl_base.entity.find_descendants(entities)
     attributions_searched = attribution.search_scores_responsible(learning_unit_title=None,
                                                                   course_code=None,
                                                                   entities=entities_with_descendants,
                                                                   tutor=None,
                                                                   responsible=None)
     dictionary = get_attributions_list(attributions_searched, "-score_responsible")
     self.assertIsNotNone(dictionary)
 def test_create_attributions_list(self):
     entities_manager = mdl_base.entity_manager.find_by_user(self.user)
     entities = [entity_manager.entity for entity_manager in entities_manager]
     entities_with_descendants = Entity.objects.filter(
         pk__in=[row['entity_id'] for row in EntityVersion.objects.get_tree(entities)])
     attributions_searched = attribution.search_scores_responsible(
         learning_unit_title=None,
         course_code=None,
         entities=entities_with_descendants,
         tutor=None,
         responsible=None
     )
     dictionary = get_attributions_list(attributions_searched, "-score_responsible")
     self.assertIsNotNone(dictionary)
示例#3
0
 def test_create_attributions_list(self):
     entities_manager = mdl_base.entity_manager.find_by_user(self.user)
     entities = [entity_manager.entity for entity_manager in entities_manager]
     entities_with_descendants = Entity.objects.filter(
         pk__in=[row['entity_id'] for row in EntityVersion.objects.get_tree(entities)])
     attributions_searched = attribution.search_scores_responsible(
         learning_unit_title=None,
         course_code=None,
         entities=entities_with_descendants,
         tutor=None,
         responsible=None
     )
     dictionary = get_attributions_list(attributions_searched, "-score_responsible")
     self.assertIsNotNone(dictionary)