mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
style: format test_main.py with black
This commit is contained in:
parent
e10d06cb47
commit
af3d8dd6a7
1 changed files with 10 additions and 5 deletions
|
@ -681,11 +681,16 @@ class TestMain(TestCase):
|
||||||
def test_set_env_multiple(self):
|
def test_set_env_multiple(self):
|
||||||
# Test setting multiple environment variables
|
# Test setting multiple environment variables
|
||||||
with GitTemporaryDirectory():
|
with GitTemporaryDirectory():
|
||||||
main([
|
main(
|
||||||
"--set-env", "TEST_VAR1=value1",
|
[
|
||||||
"--set-env", "TEST_VAR2=value2",
|
"--set-env",
|
||||||
"--exit", "--yes"
|
"TEST_VAR1=value1",
|
||||||
])
|
"--set-env",
|
||||||
|
"TEST_VAR2=value2",
|
||||||
|
"--exit",
|
||||||
|
"--yes",
|
||||||
|
]
|
||||||
|
)
|
||||||
self.assertEqual(os.environ.get("TEST_VAR1"), "value1")
|
self.assertEqual(os.environ.get("TEST_VAR1"), "value1")
|
||||||
self.assertEqual(os.environ.get("TEST_VAR2"), "value2")
|
self.assertEqual(os.environ.get("TEST_VAR2"), "value2")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue