Skip to content

Commit

Permalink
realtest fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cgevans committed Nov 5, 2023
1 parent 84dcbaa commit 7db88d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ SPDX-License-Identifier: EUPL-1.2
- Parsing of multicomponent data for v1 and v2 machines, and partial analysis data for v1 machines.
- Available data is shown in experiment information.
- Change license to EUPL-1.2.
- Fixes for new matplotlib versions.

# Version 0.10.1

Expand Down
22 changes: 7 additions & 15 deletions tests/test_real.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@

import asyncio
import uuid
from asyncio.futures import Future

import pytest

from qslib import AccessLevel, Experiment, Machine, PlateSetup, Protocol, Stage
from qslib.experiment import MachineBusyError
from qslib.monitor import MachineConfig
from qslib.qs_is_protocol import (
AccessLevelExceeded,
AuthError,
Expand Down Expand Up @@ -42,7 +40,6 @@ async def test_real_autherror():
m.run_command("HELP?")


@pytest.mark.asyncio
def test_real_invocationerror():
m = Machine("localhost", password="correctpassword")
with m:
Expand All @@ -65,18 +62,13 @@ def test_real_invocationerror():

@pytest.mark.asyncio
async def test_real_experiment():
from qslib.monitor import Collector, Config

mon = Collector(
Config(machine=MachineConfig(host="localhost", password="correctpassword"))
)

confut: Future[bool] = asyncio.Future()
task = mon.monitor(confut)

asyncio.tasks.create_task(task)

await confut
# mon = Collector(
# Config(machine=MachineConfig(host="localhost", password="correctpassword"))
# )
# confut: Future[bool] = asyncio.Future()
# task = mon.monitor(confut)
# asyncio.tasks.create_task(task)
# await confut

proto = Protocol(
[
Expand Down

0 comments on commit 7db88d4

Please sign in to comment.