Skip to content

Commit 9e3f5d6

Browse files
committed
🧪 Fix failing tests
1 parent 0fc7499 commit 9e3f5d6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎.github/workflows/test_client_ubuntu.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
141141
run: >-
142142
python -m pytest -x
143-
-m "offline and not api" -m cli -c /dev/null -p no:warnings
143+
-m "(offline and not api) or cli" -c /dev/null -p no:warnings
144144
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
145145
config_tests:
146146
runs-on: ubuntu-latest

‎tests/cli/test_sender_command.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_sender_command(request, monkeypatch) -> None:
1414
with tempfile.TemporaryDirectory() as tempd:
1515
monkeypatch.setenv("SIMVUE_OFFLINE_DIRECTORY", tempd)
1616
_run = Run(mode="offline")
17-
setup_test_run(_run, tempd, create_objects=True, request=request)
17+
setup_test_run(_run, temp_dir=tempd, create_objects=True, request=request)
1818
_run.close()
1919
_runner = click.testing.CliRunner()
2020
_result = _runner.invoke(

‎tests/functional/test_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def test_plot_metrics(create_test_run: tuple[sv_run.Run, dict]) -> None:
161161
raise AssertionError("Failed to retrieve metrics.")
162162
client.plot_metrics(
163163
run_ids=[create_test_run[1]["run_id"]],
164-
metric_names=list(create_test_run[1]["metrics"]),
164+
metric_names=[m for m in create_test_run[1]["metrics"] if not m.startswith("grid")],
165165
xaxis="time",
166166
)
167167

0 commit comments

Comments
 (0)