<commit_before>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()<commit_msg>Fix test_bad_router with option --no-router<commit_after>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')
{'fraction_non_alphanumeric': 0.08121019108280254, 'fraction_numerical': 0.006369426751592357, 'mean_word_length': 4.285714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5686184', 'n_tokens_mistral': 197, 'n_tokens_neox': 191, 'n_words': 35}