Example #1
0
 def test_list_all_lists_all_representations_from_non_base_version(self):
     """testing if Representation.list_all() returns a list of strings
     showing the repr names by using non base version.
     """
     expected_result = ['Base', 'Hires', 'Midres', 'Lores']
     rep = Representation(self.version10)
     result = rep.list_all()
     self.assertEqual(sorted(expected_result), sorted(result))
Example #2
0
 def test_list_all_lists_all_representations(self):
     """testing if Representation.list_all() returns a list of strings
     showing the repr names.
     """
     expected_result = ['Base', 'BBox', 'ASS', 'GPU']
     rep = Representation(self.version1)
     result = rep.list_all()
     self.assertEqual(sorted(expected_result), sorted(result))
Example #3
0
 def test_list_all_lists_all_representations_from_non_base_version(self):
     """testing if Representation.list_all() returns a list of strings
     showing the repr names by using non base version.
     """
     expected_result = ['Base', 'Hires', 'Midres', 'Lores']
     rep = Representation(self.version10)
     result = rep.list_all()
     self.assertEqual(sorted(expected_result), sorted(result))
Example #4
0
 def test_list_all_lists_all_representations(self):
     """testing if Representation.list_all() returns a list of strings
     showing the repr names.
     """
     expected_result = ['Base', 'BBox', 'ASS', 'GPU']
     rep = Representation(self.version1)
     result = rep.list_all()
     self.assertEqual(sorted(expected_result), sorted(result))
Example #5
0
    def list_all_repr(self):
        """Returns a list of strings representing all the representation names
        of this FileReference

        :return: list of str
        """
        from anima.env.mayaEnv import Maya
        m = Maya()
        v = m.get_version_from_full_path(self.path)

        if v is None:
            return []

        rep = Representation(version=v)
        return rep.list_all()
Example #6
0
    def list_all_repr(self):
        """Returns a list of strings representing all the representation names
        of this FileReference

        :return: list of str
        """
        from anima.env.mayaEnv import Maya
        m = Maya()
        v = m.get_version_from_full_path(self.path)

        if v is None:
            return []

        rep = Representation(version=v)
        return rep.list_all()