Skip to content

Commit

Permalink
Merge pull request #157 from pyansys/mostieri/fix_ado_windows_builds
Browse files Browse the repository at this point in the history
use http link when using local launcher
  • Loading branch information
mariostieriansys authored Mar 31, 2023
2 parents 74bf62c + bc90d46 commit 4cf0c29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/example_tests/test_designpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
def test_designpoints(tmpdir, pytestconfig: pytest.Config):
data_dir = tmpdir.mkdir("datadir")
use_local = pytestconfig.getoption("use_local_launcher")
root = None
if use_local:
launcher = LocalLauncher()
root = "http://s3.amazonaws.com/www3.ensight.com/PyEnSight/ExampleData"
else:
launcher = DockerLauncher(data_directory=data_dir, use_dev=True)
session = launcher.start()
session.load_example("elbow_dp0_dp1.ens")
session.load_example("elbow_dp0_dp1.ens", root=root)
image = session.show("image", width=800, height=600)
image.download(data_dir)
print([p.PATHNAME for p in session.ensight.objs.core.PARTS])
Expand Down
4 changes: 3 additions & 1 deletion tests/example_tests/test_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
def test_queries(tmpdir, pytestconfig: pytest.Config):
data_dir = tmpdir.mkdir("datadir")
use_local = pytestconfig.getoption("use_local_launcher")
root = None
if use_local:
launcher = LocalLauncher()
root = "http://s3.amazonaws.com/www3.ensight.com/PyEnSight/ExampleData"
else:
launcher = DockerLauncher(data_directory=data_dir, use_dev=True)
session = launcher.start()
session.load_example("waterbreak.ens")
session.load_example("waterbreak.ens", root=root)
# Get the core part and variable objects
var = session.ensight.objs.core.VARIABLES["p"][0]
part = session.ensight.objs.core.PARTS["default_region"][0]
Expand Down

0 comments on commit 4cf0c29

Please sign in to comment.