Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mariostieriansys committed Jan 7, 2025
1 parent afb443f commit 86bbdae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/example_tests/test_dvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ def build_numpy_conn_simba_format(conn):
def test_dvs_data(tmpdir, pytestconfig: pytest.Config):
data_dir = tmpdir.mkdir("datadir")
use_local = pytestconfig.getoption("use_local_launcher")
local = False
if use_local:
launcher = LocalLauncher()
local = True
else:
launcher = DockerLauncher(data_directory=data_dir, use_dev=True)
session = launcher.start()
Expand Down Expand Up @@ -115,7 +117,7 @@ def test_dvs_data(tmpdir, pytestconfig: pytest.Config):
dvs.end_updates()
dvs.load_dataset_in_ensight()
assert len(session.ensight.objs.core.PARTS) == 1
if use_local:
if local:
push_dir = tmpdir.mkdir("newdir")
dvs.get_dvs_data_from_container(push_dir)
assert os.path.isdir(os.path.join(push_dir, "dvs_cache"))
Expand Down

0 comments on commit 86bbdae

Please sign in to comment.