Exemplo n.º 1
0
    def test_generate_xls_data_with_a_learning_unit(self, mock_generate_xls):
        proposal_xls.create_xls(self.user, [self.proposal_1], None)

        xls_data = [self._get_xls_data()]

        expected_argument = _generate_xls_build_parameter(xls_data, self.user)
        mock_generate_xls.assert_called_with(expected_argument, None)
Exemplo n.º 2
0
 def test_generate_xls_data_with_no_data(self, mock_generate_xls):
     proposal_xls.create_xls(self.user, [], None)
     expected_argument = _generate_xls_build_parameter([], self.user)
     mock_generate_xls.assert_called_with(expected_argument, None)