The-Swarm-Corporation / swarms-cloud

Deploy your autonomous agents to production grade environments with 99% Uptime Guarantee, Infinite Scalability, and self-healing.
https://docs.swarms.world/en/latest/
MIT License
27 stars 10 forks source link

[BUG] invalid test test_generate_api_key_invalid_prefix_type - should be removed #14

Open evelynmitchell opened 10 months ago

evelynmitchell commented 10 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_invalid_prefix_type _____________________

    def test_generate_api_key_invalid_prefix_type():
        with pytest.raises(ValueError):
>           generate_api_key(prefix=123)

This test is expecting to receive a value error for generating an api key with prefix 123. But, there is no standards for the values that an API key can take, so this test will never raise a Value Error, and should be removed.

Upvote & Fund

Fund with Polar

github-actions[bot] commented 8 months ago

Stale issue message