Many tests (e.g., moe/tests/optimal_learning/python/cpp_wrappers/gaussian_process_test.py::TestGaussianProcess::test_python_and_cpp_return_same_mu_and_gradient or moe/tests/views/exceptions_test.py::TestRestGaussianProcessWithExceptions::test_badly_formed_json_payload_invalid) loop over multiple different inputs to essentially the same test (and often other tests in the file share a similar structure). It'd be shorter/cleaner to use parameterization.
pytest allows us to parameterize tests: http://pytest.org/latest/example/parametrize.html
Many tests (e.g.,
moe/tests/optimal_learning/python/cpp_wrappers/gaussian_process_test.py::TestGaussianProcess::test_python_and_cpp_return_same_mu_and_gradient
ormoe/tests/views/exceptions_test.py::TestRestGaussianProcessWithExceptions::test_badly_formed_json_payload_invalid
) loop over multiple different inputs to essentially the same test (and often other tests in the file share a similar structure). It'd be shorter/cleaner to use parameterization.