gpsandhu23 / TARS

Personal AI helper
0 stars 0 forks source link

Add unittests for agent.py #53

Closed gpsandhu23 closed 5 months ago

gpsandhu23 commented 5 months ago

Adds unittests for agent.py in the newly created tests/graphs/test_agent.py file, enhancing the test coverage for the TARS project.


For more details, open the Copilot Workspace session.

sweep-ai[bot] commented 5 months ago

Sweep: PR Review

tests/graphs/test_agent.py

The pull request adds a new test class TestAgentManager with methods to test various functionalities of the AgentManager class, ensuring proper handling of valid and invalid inputs, and verifying the return types and contents of specific methods.

Sweep Found These Issues

  • The test_define_prompt method assumes the existence of a ChatPromptTemplate class or type, which is not imported or defined in the provided code, potentially causing a NameError.
  • https://github.com/gpsandhu23/TARS/blob/edac031dc6906a10f5fd95feeec488f5f5ca4e39/tests%2Fgraphs%2Ftest_agent.py#L21 [View Diff](https://github.com/gpsandhu23/TARS/pull/53/files#diff-f7235a93d09da9924e3bf968bf7786f007b367d4a0ce67871c352c5f6c8f4baaR21)