aiondemand / aiondemand/aiondemand

Add comprehensive tests for calls.py

Ouverte
#231 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
38
Forks
89
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**Describe the Feature**

Add a complete test suite for the functions defined in calls.py to ensure correctness, reliability and proper error handling. This includes covering synchronous and asynchronous API calls, different response formats and edge cases. This improvement helps prevent regressions and increases confidence in API related changes.

**Considered Alternatives**
- Partial testing of only key functions
- Relying on manual testing

These were not preferred as they leave gaps in coverage and increase the risk of undetected bugs.

**Additional context**
The tests will mock external API calls and focus on validating:

- Response handling
- Error conditions
- Edge cases
- Async behavior

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.