Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to pytest testing #39

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<depend>bitbots_utils</depend>
<depend>python3-cryptography</depend>

<test_depend>python3-hypothesis</test_depend>
<test_depend>python3-pytest</test_depend>

<export>
<bitbots_documentation>
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"launch",
"setuptools",
],
tests_require=["pytest"],
zip_safe=True,
keywords=["ROS"],
license="MIT",
Expand Down
10 changes: 0 additions & 10 deletions test/rostests/test_sender.launch

This file was deleted.

29 changes: 0 additions & 29 deletions test/rostests/test_sender.py

This file was deleted.

13 changes: 0 additions & 13 deletions test/rostests/test_sender_receiver.launch

This file was deleted.

28 changes: 0 additions & 28 deletions test/rostests/test_sender_receiver.py

This file was deleted.

9 changes: 9 additions & 0 deletions test/udp_bridge/test_aes_helper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from udp_bridge import aes_helper


def test_decrypt_inverts_encrypt():
message = b"Hello, World!"
encrypted = aes_helper.AESCipher("key").encrypt(message)
decrypted = aes_helper.AESCipher("key").decrypt(encrypted)

assert message == decrypted
22 changes: 0 additions & 22 deletions test/unit_tests/test_aes_helper.py

This file was deleted.

Loading