Line data Source code
1 : // SPDX-FileCopyrightText: 2024 Pairinteraction Developers 2 : // SPDX-License-Identifier: LGPL-3.0-or-later 3 : 4 : #include "./run_unit_tests.py.hpp" 5 : 6 : #include "pairinteraction/tools/run_unit_tests.hpp" 7 : 8 : #include <nanobind/nanobind.h> 9 : #include <nanobind/stl/filesystem.h> 10 : 11 : namespace nb = nanobind; 12 : using namespace pairinteraction; 13 : 14 2 : void bind_run_unit_tests(nb::module_ &m) { 15 2 : m.def("run_unit_tests", 16 3 : [](bool download_missing, bool use_cache, std::filesystem::path database_dir) { 17 2 : return run_unit_tests(0, nullptr, download_missing, use_cache, 18 3 : std::move(database_dir)); 19 : }); 20 2 : }