<commit_before>import pytest

from pytestqt.qt_compat import USING_PYSIDE


fails_on_pyqt = pytest.mark.xfail(USING_PYSIDE, reason='not exported by PyQt')


@pytest.mark.parametrize('expected_method', [
    'keyPress',
    'keyClick',
    'keyClicks',
    'keyEvent',
    'keyPress',
    'keyRelease',
    fails_on_pyqt('keyToAscii'),

    'mouseClick',
    'mouseDClick',
    'mouseEvent',
    'mouseMove',
    'mousePress',
    'mouseRelease',
],
)
def test_expected_qtest_proxies(qtbot, expected_method):
    """
    Ensure that we are exporting expected QTest API methods.
    """
    assert hasattr(qtbot, expected_method)
    assert getattr(qtbot, expected_method).__name__ == expected_method<commit_msg>Fixed xfail call<commit_after>import pytest

from pytestqt.qt_compat import USING_PYSIDE


fails_on_pyqt = pytest.mark.xfail(not USING_PYSIDE,
                                  reason='not exported by PyQt')


@pytest.mark.parametrize('expected_method', [
    'keyPress',
    'keyClick',
    'keyClicks',
    'keyEvent',
    'keyPress',
    'keyRelease',
    fails_on_pyqt('keyToAscii'),

    'mouseClick',
    'mouseDClick',
    'mouseEvent',
    'mouseMove',
    'mousePress',
    'mouseRelease',
],
)
def test_expected_qtest_proxies(qtbot, expected_method):
    """
    Ensure that we are exporting expected QTest API methods.
    """
    assert hasattr(qtbot, expected_method)
    assert getattr(qtbot, expected_method).__name__ == expected_method
{'fraction_non_alphanumeric': 0.1163586584531143, 'fraction_numerical': 0.0, 'mean_word_length': 3.7161290322580647, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7375465', 'n_tokens_mistral': 509, 'n_tokens_neox': 511, 'n_words': 92}