mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 04:14:59 +00:00
test: add verification for pytest.ini environment variables
This commit is contained in:
parent
3f770cc5c0
commit
6b4222ec48
1 changed files with 5 additions and 0 deletions
|
@ -669,6 +669,11 @@ class TestMain(TestCase):
|
|||
)
|
||||
self.assertTrue(coder.detect_urls)
|
||||
|
||||
def test_pytest_env_vars(self):
|
||||
# Verify that environment variables from pytest.ini are properly set
|
||||
self.assertEqual(os.environ.get("AIDER_ANALYTICS"), "false")
|
||||
self.assertEqual(os.environ.get("AIDER_ANALYTICS_LOG"), "/dev/null")
|
||||
|
||||
def test_invalid_edit_format(self):
|
||||
with GitTemporaryDirectory():
|
||||
with patch("aider.io.InputOutput.offer_url") as mock_offer_url:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue