pairinteraction
A Rydberg Interaction Calculator
run_unit_tests.py.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2024 Pairinteraction Developers
2// SPDX-License-Identifier: LGPL-3.0-or-later
3
5
7
8#include <nanobind/nanobind.h>
9#include <nanobind/stl/filesystem.h>
10
11namespace nb = nanobind;
12using namespace pairinteraction;
13
14void bind_run_unit_tests(nb::module_ &m) {
15 m.def("run_unit_tests",
16 [](bool download_missing, bool use_cache, std::filesystem::path database_dir) {
17 return run_unit_tests(0, nullptr, download_missing, use_cache,
18 std::move(database_dir));
19 });
20}
int run_unit_tests(int argc=0, char **argv={}, bool download_missing=false, bool use_cache=true, std::filesystem::path database_dir="")
void bind_run_unit_tests(nb::module_ &m)