Skip to content

Commit

Permalink
Apply test updates to new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzeslaus committed May 2, 2024
1 parent e4eedc3 commit 0c76cdf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/grass/script/tests/grass_script_core_location_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def test_path_only(tmp_path):
assert full_path.exists()
assert mapset_path.exists()
assert wkt_file.exists()
with gs.setup.init(full_path):
epsg = gs.parse_command("g.proj", flags="g")["srid"]
with gs.setup.init(full_path, env=os.environ.copy()) as session:
epsg = gs.parse_command("g.proj", flags="g", env=session.env)["srid"]
assert epsg == "EPSG:3358"


Expand All @@ -132,8 +132,8 @@ def test_create_project(tmp_path):
assert (tmp_path / name).exists()
wkt_file = tmp_path / name / "PERMANENT" / "PROJ_WKT"
assert wkt_file.exists()
with gs.setup.init(tmp_path / name):
epsg = gs.parse_command("g.proj", flags="g")["srid"]
with gs.setup.init(tmp_path / name, env=os.environ.copy()) as session:
epsg = gs.parse_command("g.proj", flags="g", env=session.env)["srid"]
assert epsg == "EPSG:3358"


Expand Down

0 comments on commit 0c76cdf

Please sign in to comment.