diff --git a/tests/sims/simulation_2_3_0.json b/tests/sims/simulation_2_3_0.json index 0f1a8a774..6a5a1fb6a 100644 --- a/tests/sims/simulation_2_3_0.json +++ b/tests/sims/simulation_2_3_0.json @@ -681,6 +681,7 @@ "offset": 5.0 }, "name": null, + "interpolate": true, "polarization": "Hx" }, { @@ -704,8 +705,8 @@ "offset": 5.0 }, "name": null, - "polarization": "Ex", - "interpolate": true + "interpolate": true, + "polarization": "Ex" }, { "type": "ModeSource", @@ -891,6 +892,7 @@ "offset": 5.0 }, "name": null, + "interpolate": true, "current_dataset": { "type": "FieldDataset", "Ex": "ScalarFieldDataArray", diff --git a/tests/test_web/test_webapi.py b/tests/test_web/test_webapi.py index 36801e9c7..859e248c4 100644 --- a/tests/test_web/test_webapi.py +++ b/tests/test_web/test_webapi.py @@ -3,6 +3,7 @@ import pytest import responses from _pytest import monkeypatch +import os import tidy3d as td import tidy3d.web as web @@ -20,8 +21,11 @@ from tidy3d.__main__ import main +from ..utils import TMP_DIR + # variables used below -FNAME_TMP = "tests/tmp/web_test_tmp.json" +FNAME_TMP = os.path.join(TMP_DIR, "web_test_tmp.json") + TASK_NAME = "task_name_test" TASK_ID = "1234" CREATED_AT = "2022-01-01T00:00:00.000Z" @@ -29,6 +33,10 @@ FLEX_UNIT = 1.0 EST_FLEX_UNIT = 11.11 +# make the TMP directory if it doesnt exist +if not os.path.exists(TMP_DIR): + os.mkdir(TMP_DIR) + def make_sim(): """Makes a simulation."""