Skip to content

Commit

Permalink
Skip tests if they cannot succeed.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktBurger committed May 15, 2024
1 parent af760ce commit 286bb5c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions tests/coordinators/test_proxy_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

from __future__ import annotations
import io
import sys
from typing import Optional

import pytest
Expand Down Expand Up @@ -51,7 +52,14 @@ def _fake_proxy_steerable(

monkeypatch.setattr("zmq.proxy_steerable", _fake_proxy_steerable)

def test_success():
"""To verify, that the imports work."""
pass


@pytest.mark.skipif(
not sys.platform.lower().startswith("mac"), reason="fails on ubuntu/windows runners"
)
class Test_pub_sub_proxy:
def test_default_config(self, fake_proxy_steerable):
pub_sub_proxy(FakeContext()) # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion tests/management/test_starter.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_already_started_task(self, starter: Starter):
starter.events["t1"] = SimpleEvent() # type: ignore
# act
starter.start_task("t1")
assert Status.RUNNING in starter.started_tasks["t1"]
assert Status.RUNNING in Status(starter.started_tasks["t1"])


class Test_stop_task:
Expand Down

0 comments on commit 286bb5c

Please sign in to comment.