Skip to content

Commit

Permalink
Move to pytest testing (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaagut authored Dec 19, 2024
2 parents f445e0e + 87adf72 commit ce2737c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 103 deletions.
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.

0 comments on commit ce2737c

Please sign in to comment.