import pytest

from autobahn_sync import AutobahnSync, ConnectionRefusedError


class TestBadRouter(object):

    def test_router_not_started(self):
        wamp = AutobahnSync()
        with pytest.raises(ConnectionRefusedError):
            wamp.start()

import pytest

from autobahn_sync import AutobahnSync, ConnectionRefusedError


class TestBadRouter(object):

    def test_router_not_started(self):
        wamp = AutobahnSync()
        with pytest.raises(ConnectionRefusedError):
            wamp.start(url=u'ws://localhost:9999/missing')

Fix test_bad_router with option --no-router