Skip to content

Increase Test Coverage for Utility Functions #19

@aliviahossain

Description

@aliviahossain

📂 Category

None

📘 Additional Context (Optional)

The Problem: Every good project needs tests. Sometimes, small utility functions or specific edge cases might be missed in the existing test suite. Adding tests makes the project more robust.

The Solution:

Look for a utility file, such as packages/agentos/agentos/utils.py.

Examine the corresponding test file, packages/agentos/tests/test_utils.py, to see which functions are already tested.

Identify a simple function or a specific condition that isn't covered. For example, how does a function behave if it's given an empty list, a None value, or a file that doesn't exist?

Add a new test case to the test file that checks this specific behavior. The project uses pytest, which is a very popular and easy-to-learn testing framework.

PLEASE ASSIGN ME THIS ISSUE UNDER THE GSSOC' 25 LABEL. THANK YOU.

🙌 Contributor Checklist (Optional)

  • I have searched existing issues to avoid duplicates
  • I agree to follow this project's Code of Conduct
  • I am a GSSOC'25 contributor
  • I want to work on this issue

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions