From e1e186ffc3f5091a07260ad65757e5b06d870a9d Mon Sep 17 00:00:00 2001 From: Jurgen Lentz <42538773+jurgen-lentz@users.noreply.github.com> Date: Sun, 1 Dec 2024 00:27:14 +0100 Subject: [PATCH] Update test_environment.py --- amplpy/tests/test_environment.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/amplpy/tests/test_environment.py b/amplpy/tests/test_environment.py index 2b181f5..4b77b7c 100644 --- a/amplpy/tests/test_environment.py +++ b/amplpy/tests/test_environment.py @@ -27,7 +27,7 @@ def test_environment(self): for name, value in os.environ.items(): print("{0}: {1}".format(name, value)) - os.environ["USER1"] = "Filipe Brandão" + #os.environ["USER1"] = "Filipe Brandão" env1 = Environment() env2 = Environment(os.curdir) self.assertEqual(env2.get_bin_dir(), os.curdir) @@ -43,6 +43,14 @@ def test_environment(self): ampl = AMPL(Environment()) ampl.close() +def test_environment2(self): + from amplpy import Environment, AMPL + + os.environ["USER1"] = "Filipe Brandão" + ampl = AMPL(Environment()) + ampl.close() + + def test_env_options(self): from amplpy import AMPL, Environment