Skip to content

Commit

Permalink
Add an ament_lint test dependency on python3-pytest. (#473)
Browse files Browse the repository at this point in the history
While we don't actually have any tests in here, this ensures
that colcon will use pytest (and not unittest) to run
any tests.

Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette authored Feb 6, 2024
1 parent bf3c609 commit 903c283
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ament_lint/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<author>Dirk Thomas</author>
<author email="[email protected]">Michel Hidalgo</author>

<test_depend>python3-pytest</test_depend>

<export>
<build_type>ament_python</build_type>
</export>
Expand Down
1 change: 1 addition & 0 deletions ament_lint/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
Providing common API for ament linter packages, e.g. the `linter` marker for
pytest.""",
license='Apache License, Version 2.0',
tests_require=['pytest'],
entry_points={
'pytest11': [
'ament_lint = ament_lint.pytest_marker',
Expand Down

0 comments on commit 903c283

Please sign in to comment.