|
11 | 11 | # See the License for the specific language governing permissions and
|
12 | 12 | # limitations under the License.
|
13 | 13 |
|
| 14 | +load("@pip_deps//:requirements.bzl", "requirement") |
14 | 15 | load("@pybind11_bazel//:build_defs.bzl", "pybind_extension")
|
| 16 | +load("@rules_python//python:defs.bzl", "py_test") |
15 | 17 |
|
16 | 18 | package(default_visibility = ["//ortools/math_opt:__subpackages__"])
|
17 | 19 |
|
@@ -57,3 +59,25 @@ pybind_extension(
|
57 | 59 | "@pybind11_protobuf//pybind11_protobuf:native_proto_caster",
|
58 | 60 | ],
|
59 | 61 | )
|
| 62 | + |
| 63 | +py_test( |
| 64 | + name = "solver_test", |
| 65 | + size = "small", |
| 66 | + srcs = ["solver_test.py"], |
| 67 | + deps = [ |
| 68 | + ":solver", |
| 69 | + requirement("absl-py"), |
| 70 | + "//ortools/math_opt:callback_py_pb2", |
| 71 | + "//ortools/math_opt:model_parameters_py_pb2", |
| 72 | + "//ortools/math_opt:model_py_pb2", |
| 73 | + "//ortools/math_opt:model_update_py_pb2", |
| 74 | + "//ortools/math_opt:parameters_py_pb2", |
| 75 | + "//ortools/math_opt:result_py_pb2", |
| 76 | + "//ortools/math_opt/solvers:cp_sat_solver", |
| 77 | + "//ortools/math_opt/solvers:glop_solver", |
| 78 | + "//ortools/math_opt/solvers:gscip_solver", |
| 79 | + "//py/google/protobuf:use_fast_cpp_protos", # Automatically added go/proto_python_upb_flip |
| 80 | + "//pybind11_abseil:status", |
| 81 | + "//testing/pybase:parameterized", |
| 82 | + ], |
| 83 | +) |
0 commit comments