kyegomez / swarms-cloud

Deploy your autonomous agents to production grade environments with 99% Uptime Guarantee, Infinite Scalability, and self-healing.
https://discord.gg/GYbXvDGevY
MIT License
22 stars 9 forks source link

[BUG] invalid test test_generate_api_key_unexpected_error - test should be removed #13

Open evelynmitchell opened 7 months ago

evelynmitchell commented 7 months ago

From within a container, python 3.10.13

pytest test_api_generator.py 
================================ test session starts ================================
platform linux -- Python 3.10.13, pytest-7.4.3, pluggy-1.3.0
rootdir: /usr/src/swarm_cloud/tests
plugins: time-machine-2.13.0, anyio-3.7.1
collected 18 items                                                                  

test_api_generator.py F...F...EF.F.F...F                                      [100%]
===================================== FAILURES ======================================

______________________ test_generate_api_key_unexpected_error _______________________

    def test_generate_api_key_unexpected_error():
>       with pytest.raises(RuntimeError):
E       Failed: DID NOT RAISE <class 'RuntimeError'>

test_api_generator.py:34: Failed

This test is trying to create a runtime error by creating a key of length 100000. I think it doesn't make sense and should be deleted. An unexpected api key will be discovered when it isn't valid at the api call

Upvote & Fund

Fund with Polar

github-actions[bot] commented 5 months ago

Stale issue message