import pytest
from tests.core.test_sql import conn

# this file is used to share fixtures

from PySide6.QtWidgets import QApplication

# from pytestqt.qt_compat import qt_api
from cutevariant.gui.style import AppStyle


class CustomQApplication(QApplication):
    def __init__(self, *argv):
        super().__init__(*argv)


@pytest.fixture(scope="session")
def qapp():
    app = QApplication.instance()
    app.setStyle(AppStyle())
    yield app
