Skip to content

Commit

Permalink
Update test_environment.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgen-lentz authored Nov 30, 2024
1 parent 953df19 commit e1e186f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion amplpy/tests/test_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand Down

0 comments on commit e1e186f

Please sign in to comment.