<commit_before>"""Tests for xoinvader.state module."""


import pytest

from xoinvader.state import State


def test_state():
    """Test xoinvader.state.State base class."""

    state = State("owner")

    assert state.owner == "owner"
    assert state.actor is None
    assert state.screen is None

    with pytest.raises(NotImplementedError):
        state.events()
    with pytest.raises(NotImplementedError):
        state.update()
    with pytest.raises(NotImplementedError):
        state.render()<commit_msg>tests: cover State.trigger<commit_after>"""Tests for xoinvader.state module."""


import pytest

from xoinvader.state import State


def test_state():
    """Test xoinvader.state.State base class."""

    state = State("owner")

    assert state.owner == "owner"
    assert state.actor is None
    assert state.screen is None

    assert not state.trigger()

    with pytest.raises(NotImplementedError):
        state.events()
    with pytest.raises(NotImplementedError):
        state.update()
    with pytest.raises(NotImplementedError):
        state.render()
{'fraction_non_alphanumeric': 0.1102873030583874, 'fraction_numerical': 0.0, 'mean_word_length': 3.3373493975903616, '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': '3687494', 'n_tokens_mistral': 327, 'n_tokens_neox': 323, 'n_words': 80}