Skip to content

Commit

Permalink
Add missing pybind header (#3256)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv authored Mar 29, 2024
1 parent 9ad283a commit 43be9b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions libmambapy/src/libmambapy/bindings/solver_libsolv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
//
// The full license is in the file LICENSE, distributed with this software.

#include <pybind11/functional.h>
#include <pybind11/operators.h>
#include <pybind11/pybind11.h>

Expand Down
8 changes: 8 additions & 0 deletions libmambapy/tests/test_solver_libsolv.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ def test_RepodataOrigin():
assert other == orig


def test_Database_logger():
db = libsolv.Database(libmambapy.specs.ChannelResolveParams())

def logger(level, msg): ...

db.set_logger(logger)


@pytest.mark.parametrize("add_pip_as_python_dependency", [True, False])
def test_Database_RepoInfo_from_packages(add_pip_as_python_dependency):
db = libsolv.Database(libmambapy.specs.ChannelResolveParams())
Expand Down

0 comments on commit 43be9b5

Please sign in to comment.