# Path: mu/i18n.py
# def set_language(language_code, localedir=localedir):
# 
# Path: mu/interface/panes.py
# CHARTS = True
# 
# Path: mu/interface/themes.py
# DAY_STYLE = load_stylesheet("day.css")
# 
# NIGHT_STYLE = load_stylesheet("night.css")
# 
# CONTRAST_STYLE = load_stylesheet("contrast.css")


from PyQt5.QtWidgets import QMessageBox, QLabel, QMenu
from PyQt5.QtCore import Qt, QEvent, QPointF, QUrl
from PyQt5.QtGui import QTextCursor, QMouseEvent
from collections import deque
from unittest import mock
from mu import i18n
from mu.interface.panes import CHARTS
from mu.interface.themes import DAY_STYLE, NIGHT_STYLE, CONTRAST_STYLE
import sys
import os
import signal
import pytest
import mu
import mu.interface.panes
    """
    Check the correct stylesheet values are being set.
    """
    di = mu.interface.panes.DebugInspector()
    di.setStyleSheet = mock.MagicMock()
    di.set_font_size(16)
    style = di.setStyleSheet.call_args[0][0]
    assert "font-size: 16pt;" in style
    assert "font-family: Monospace;" in style


def test_DebugInspector_set_zoom():
    """
    Ensure the expected point size is set from the given "t-shirt" size.
    """
    di = mu.interface.panes.DebugInspector()
    di.set_font_size = mock.MagicMock()
    di.set_zoom("xl")
    expected = mu.interface.panes.PANE_ZOOM_SIZES["xl"]
    di.set_font_size.assert_called_once_with(expected)


def test_DebugInspector_set_theme():
    """
    Setting the theme shouldn't do anything
    """
    di = mu.interface.panes.DebugInspector()
    di.set_theme("test")



# Path: mu/i18n.py
# def set_language(language_code, localedir=localedir):
# 
# Path: mu/interface/panes.py
# CHARTS = True
# 
# Path: mu/interface/themes.py
# DAY_STYLE = load_stylesheet("day.css")
# 
# NIGHT_STYLE = load_stylesheet("night.css")
# 
# CONTRAST_STYLE = load_stylesheet("contrast.css")


# Path: tests/interface/test_panes.py
from PyQt5.QtWidgets import QMessageBox, QLabel, QMenu
from PyQt5.QtCore import Qt, QEvent, QPointF, QUrl
from PyQt5.QtGui import QTextCursor, QMouseEvent
from collections import deque
from unittest import mock
from mu import i18n
from mu.interface.panes import CHARTS
from mu.interface.themes import DAY_STYLE, NIGHT_STYLE, CONTRAST_STYLE
import sys
import os
import signal
import pytest
import mu
import mu.interface.panes

    """
    Check the correct stylesheet values are being set.
    """
    di = mu.interface.panes.DebugInspector()
    di.setStyleSheet = mock.MagicMock()
    di.set_font_size(16)
    style = di.setStyleSheet.call_args[0][0]
    assert "font-size: 16pt;" in style
    assert "font-family: Monospace;" in style


def test_DebugInspector_set_zoom():
    """
    Ensure the expected point size is set from the given "t-shirt" size.
    """
    di = mu.interface.panes.DebugInspector()
    di.set_font_size = mock.MagicMock()
    di.set_zoom("xl")
    expected = mu.interface.panes.PANE_ZOOM_SIZES["xl"]
    di.set_font_size.assert_called_once_with(expected)


def test_DebugInspector_set_theme():
    """
    Setting the theme shouldn't do anything
    """
    di = mu.interface.panes.DebugInspector()
    di.set_theme("test")



@pytest.mark.skipif(not CHARTS, reason="QtChart unavailable")