Skip to content

Commit

Permalink
test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Jun 18, 2024
1 parent 30ae724 commit 0382f6f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_conda_subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def test_popen(self):
self.assertIsNone(output[1])

def test_environment_variable(self):
self.assertEqual(
check_output("env", prefix_path=self.env_path, env={"TESTVAR": "test"}),
b"test\n",
self.assertTrue(
"TESTVAR" in check_output(
"env", prefix_path=self.env_path, env={"TESTVAR": "test"}, universal_newlines=True
).split("\n"),
)

0 comments on commit 0382f6f

Please sign in to comment.