Example #1
0
 def test_matrix_calls_axis(self):
     matrix = Matrix()
     axis = mock.Mock()
     matrix.add_axis(axis)
     cases = [mock.Mock()]
     matrix.expand(cases)
     axis.expand.assert_called_once_with(cases)
Example #2
0
 def test_matrix_leaves_out_bare_lint_all(self):
     matrix = Matrix()
     matrix.add_axis(PythonAxis(["2.7", "3.8"]))
     cases = [ToxLintCase([])]
     expanded = matrix.expand(cases)
     self.assertEqual(2, len(expanded))
Example #3
0
 def test_empty_matrix(self):
     cases = [ToxTestCase(mock.Mock(), mock.Mock()), ToxLintCase([])]
     original = copy(cases)
     matrix = Matrix()
     after_cases = matrix.expand(cases)
     self.assertEqual(after_cases, original)