Skip to content

Commit 87adf72

Browse files
committed
test(colcon): configure our pkgs to use pytest
to ensure that the CI `colcon test` run works, because with a change to python 3.12 the `unittest` standard library used by default with colcon now exits with an error code of 5 for an empty test suite. Additionally removed old ros 1 integration tests. See: colcon/colcon-core#678 See: python/cpython#102051
1 parent f445e0e commit 87adf72

8 files changed

+11
-103
lines changed

package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<depend>bitbots_utils</depend>
1919
<depend>python3-cryptography</depend>
2020

21-
<test_depend>python3-hypothesis</test_depend>
21+
<test_depend>python3-pytest</test_depend>
2222

2323
<export>
2424
<bitbots_documentation>

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"launch",
1818
"setuptools",
1919
],
20+
tests_require=["pytest"],
2021
zip_safe=True,
2122
keywords=["ROS"],
2223
license="MIT",

test/rostests/test_sender.launch

-10
This file was deleted.

test/rostests/test_sender.py

-29
This file was deleted.

test/rostests/test_sender_receiver.launch

-13
This file was deleted.

test/rostests/test_sender_receiver.py

-28
This file was deleted.

test/udp_bridge/test_aes_helper.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from udp_bridge import aes_helper
2+
3+
4+
def test_decrypt_inverts_encrypt():
5+
message = b"Hello, World!"
6+
encrypted = aes_helper.AESCipher("key").encrypt(message)
7+
decrypted = aes_helper.AESCipher("key").decrypt(encrypted)
8+
9+
assert message == decrypted

test/unit_tests/test_aes_helper.py

-22
This file was deleted.

0 commit comments

Comments
 (0)