From 525e0c1ffadfcb08ba9db6d86210e6354bf98851 Mon Sep 17 00:00:00 2001 From: Gabriele Barni Date: Mon, 20 Nov 2023 16:48:16 +0100 Subject: [PATCH] Adapt to new dummy instrument (#224) * more loose test --- tests/test_cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 4f6aa142..be286c18 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,3 +1,4 @@ +import re from typing import ChainMap from click.testing import CliRunner import pytest @@ -74,9 +75,7 @@ def test_get(dispatcher_live_fixture, caplog, monkeypatch, tmpdir): result = runner.invoke(cli.cli, ['-u', dispatcher_live_fixture, 'get'], obj={}) assert result.exit_code == 0 - assert "found instruments: ['empty', 'empty-async', 'empty-semi-async']" in caplog.text or \ - "found instruments: ['empty', 'empty-async', 'empty-semi-async', 'isgri', 'jemx', 'osa_fake']" in caplog.text or \ - "found instruments: ['isgri', 'jemx', 'osa_fake', 'empty', 'empty-async', 'empty-semi-async']" in caplog.text + assert re.search(r"found instruments: \[.*\]", caplog.text) runner = CliRunner() result = runner.invoke(cli.cli, ['-u', dispatcher_live_fixture, 'get', '-i', 'empty'], obj={})