Paul Gauthier (aider)
e10d06cb47
test: add test coverage for --set-env functionality
2024-12-07 08:08:35 -08:00
Paul Gauthier
b2da3545f9
test: disable analytics in test environment
2024-12-02 17:56:45 -08:00
Paul Gauthier
0b781174bd
ci: remove redundant AIDER_ANALYTICS_LOG environment variable
2024-11-30 11:37:33 -08:00
Paul Gauthier
f448d3e2db
chore: add pytest-env and remove debug dump from tests
2024-11-30 11:35:40 -08:00
Paul Gauthier (aider)
6b4222ec48
test: add verification for pytest.ini environment variables
2024-11-30 11:32:49 -08:00
Paul Gauthier
3f770cc5c0
test: remove analytics env vars and add debug dump
2024-11-30 11:32:48 -08:00
Paul Gauthier
62558291b6
test: disable analytics in test environment
2024-11-30 10:59:46 -08:00
Paul Gauthier
5b68c2c7d9
fix test
2024-11-26 07:09:49 -08:00
Paul Gauthier (aider)
b70e0bd1f6
test: update invalid edit format test to check return code instead of SystemExit
2024-11-26 07:07:11 -08:00
Paul Gauthier (aider)
743f0f5540
test: add test for invalid edit format handling
2024-11-26 07:06:28 -08:00
Paul Gauthier (aider)
f4b964a4b8
test: add tests for --[no-]detect-urls CLI option
2024-11-25 18:39:10 -08:00
Paul Gauthier (aider)
dba844c7f9
style: Format code with linter
2024-11-19 17:45:44 -08:00
Paul Gauthier (aider)
09c11ef8ad
test: Add --yes flag to prevent EOFError in test cases
2024-11-19 17:45:40 -08:00
Paul Gauthier
ae970cf2da
fix: Update webbrowser patch to use correct module path
2024-11-07 11:35:40 -08:00
Paul Gauthier (aider)
d81c421bfe
test: mock webbrowser.open in test setup
2024-10-30 12:04:43 -07:00
Paul Gauthier
3146d285bf
fix gitignore test
2024-10-07 12:29:39 -07:00
Paul Gauthier
99bf23c5ff
fix: Set AIDER_CHECK_UPDATE environment variable to false in test setup
2024-09-24 12:42:37 -07:00
Paul Gauthier
0a3b4147fa
test: update main tests to handle None input and add --exit flag
2024-09-10 15:32:43 -07:00
Paul Gauthier (aider)
fa49ab09c4
test: update code_theme tests to check InputOutput initialization
2024-09-10 15:24:11 -07:00
Paul Gauthier
454c2f4d0e
feat: add --exit flag to test cases for controlled termination
2024-09-10 14:30:04 -07:00
Paul Gauthier (aider)
59bdc45728
refactor: Remove unused mock_open import
2024-09-10 14:18:56 -07:00
Paul Gauthier (aider)
645252168c
style: sort imports and fix quotation marks
2024-09-10 14:18:37 -07:00
Paul Gauthier (aider)
fb87dd883c
test: patch input() to return empty string
...
This commit patches the `input()` builtin to return an empty string in the test setup, preventing tests from hanging while waiting for user input. It also adds cleanup for the patch in the teardown method.
2024-09-10 14:18:32 -07:00
Paul Gauthier
8cfdcbd976
refactor: remove redundant get_system_info method and update related test
2024-09-05 13:00:32 -07:00
Paul Gauthier (aider)
45855bd96c
feat: add get_system_info method to Coder base class
2024-09-05 12:59:12 -07:00
Paul Gauthier (aider)
b57468a963
test: add test for Spanish chat language option
2024-09-05 12:58:18 -07:00
Paul Gauthier
1a5a618608
fix: handle GitCommandNotFound exception in make_new_repo function
2024-08-31 07:49:23 -07:00
Paul Gauthier (aider)
653f0c77ef
fix: add missing cause argument to GitCommandNotFound exception
2024-08-31 07:47:19 -07:00
Paul Gauthier (aider)
6a2dd41275
style: format code with black
2024-08-31 07:46:37 -07:00
Paul Gauthier (aider)
81981e7e99
test: add test for graceful exit when git command not found
2024-08-31 07:46:33 -07:00
Paul Gauthier
0541513c7a
refactor: simplify git repository setup process
2024-08-28 15:54:28 -07:00
Paul Gauthier (aider)
b8a52c2bef
feat: use IgnorantTemporaryDirectory and create actual repo1 subdirectory in test_setup_git_home_existing_repo
2024-08-28 15:27:03 -07:00
Paul Gauthier (aider)
fc77570b38
fix: Update assertion in test_setup_git_home_invalid_choice
2024-08-28 15:25:12 -07:00
Paul Gauthier (aider)
54c5fb2bbd
style: format code
2024-08-28 15:24:11 -07:00
Paul Gauthier (aider)
715a9a9c71
feat: use IgnorantTemporaryDirectory and create actual repo1 and repo2 subdirs in test_setup_git_home_invalid_choice
2024-08-28 15:24:07 -07:00
Paul Gauthier (aider)
4d08f9c6c5
style: format code with linter
2024-08-28 15:20:35 -07:00
Paul Gauthier (aider)
8c1fa3e9ff
feat: use IgnorantTemporaryDirectory as Path.home in test_setup_git_home_new_repo
2024-08-28 15:20:31 -07:00
Paul Gauthier (aider)
6e3278afb7
style: Run linter
2024-08-28 15:15:54 -07:00
Paul Gauthier (aider)
8180fb06b0
feat: add tests for setup_git_home
2024-08-28 15:15:50 -07:00
Paul Gauthier
a0b330feda
fix: Remove unused test cases for setup_git_home
function
2024-08-28 15:15:16 -07:00
Paul Gauthier
d05cd4b459
feat: Implement setup_git_home function
2024-08-28 15:14:13 -07:00
Paul Gauthier
4782c2950f
fix
2024-08-28 11:28:29 -07:00
Paul Gauthier (aider)
f466d96597
style: format long function signatures in test_main.py
2024-08-28 11:21:33 -07:00
Paul Gauthier (aider)
a57d9e55d6
fix: handle directory creation errors in setup_git_home
2024-08-28 11:21:28 -07:00
Paul Gauthier (aider)
2192a5efb2
chore: fix failing tests in setup_git_home function
2024-08-28 11:19:30 -07:00
Paul Gauthier (aider)
e551159937
feat: import setup_git_home function in test_main.py
2024-08-28 11:16:56 -07:00
Paul Gauthier (aider)
4074096cd1
style: format code with black
2024-08-28 11:15:54 -07:00
Paul Gauthier (aider)
f43cc7f6c6
test: add unit tests for setup_git_home function
2024-08-28 11:15:50 -07:00
paul-gauthier
0dcbc09761
Merge pull request #1196 from akaihola/isolated-tests
...
Use fake home directory to prevent `~/.aider.conf.yml` from affecting the test suite
2024-08-27 15:09:40 -07:00
Antti Kaihola
0746805e43
fix: TestMain now uses a fake home directory
...
This prevents tests from reading unexpected settings from the real
`~/.aider.conf.yml` file.
Fixes #1165 .
2024-08-28 00:13:36 +03:00