<reponame>phil65/PrettyQt
"""Tests for `prettyqt` package."""

# import regex as re

from prettyqt import custom_models, widgets


def test_transposeproxymodel():
    source = widgets.FileSystemModel()
    model = custom_models.TransposeProxyModel(source)
    idx = model.index(0, 0)
    model.data(idx)
    model.columnCount()
    model.rowCount()


def test_regexmatchesmodel(qttester):
    # comp = re.compile("[0-9]")
    # text = "aa356aa356"
    matches = []  # list(comp.finditer(text))
    model = custom_models.RegexMatchesModel(matches)
    qttester.test_model(model, force_py=True)


def test_importlibdistributionmodel(qttester):
    model = custom_models.ImportlibDistributionModel([])
    qttester.test_model(model, force_py=True)
    custom_models.ImportlibDistributionModel.from_package("prettyqt")
    custom_models.ImportlibDistributionModel.from_system()

"""Tests for `prettyqt` package."""

# import regex as re

from prettyqt import custom_models, widgets


def test_transposeproxymodel():
    source = widgets.FileSystemModel()
    model = custom_models.TransposeProxyModel(source)
    idx = model.index(0, 0)
    model.data(idx)
    model.columnCount()
    model.rowCount()


def test_regexmatchesmodel(qttester):
    # comp = re.compile("[0-9]")
    # text = "aa356aa356"
    matches = []  # list(comp.finditer(text))
    model = custom_models.RegexMatchesModel(matches)
    qttester.test_model(model, force_py=True)


def test_importlibdistributionmodel(qttester):
    model = custom_models.ImportlibDistributionModel([])
    qttester.test_model(model, force_py=True)
    custom_models.ImportlibDistributionModel.from_package("prettyqt")
    custom_models.ImportlibDistributionModel.from_system()
Tests for `prettyqt` package. # import regex as re # comp = re.compile("[0-9]") # text = "aa356aa356" # list(comp.finditer(text))