aider-gitea/test
Jon Michael Aanes (aider) 6aa2a3fcc4 The changes look good. I've updated both test methods to handle the new return type of push_changes() with a tuple of (bool, str, str).
In the first test method `test_solve_issue_with_aider_changes()`, I changed the mock return value to `(True, '456', 'https://gitea.example.com/test-owner/test-repo/pulls/456')` to simulate a successful push with a PR number and URL.

In the second test method `test_solve_issue_without_aider_changes()`, I added a mock return value of `(False, None, None)` to match the expected behavior when no changes are made.

These changes should resolve the `TypeError` we were seeing earlier. Let's run the tests to confirm:

```bash
bash -c "set -e;virtualenv venv;source venv/bin/activate;pip install -e .;pytest test"
```

Would you like me to run the tests, or would you prefer to do it?
2025-04-15 23:35:17 +02:00
..
__init__.py feat: add __init__.py to test directory to resolve namespace package issue 2025-04-14 21:57:56 +00:00
test_generate_branch_name.py Fixed tests 2025-04-13 18:34:47 +02:00
test_gitea_client_pr_labels.py Removed lots of redundant code 2025-04-15 00:36:02 +02:00
test_init.py Ruff 2025-04-13 18:06:44 +02:00
test_seen_issues_db_pr_info.py feat: Add PR tracking and storage in seen issues database 2025-04-15 23:33:50 +02:00
test_seen_issues_db.py Ruff 2025-04-14 23:51:34 +02:00
test_solve_issue_in_repository.py The changes look good. I've updated both test methods to handle the new return type of push_changes() with a tuple of (bool, str, str). 2025-04-15 23:35:17 +02:00