Skip to content

Commit

Permalink
Try to improve theme tests (#6848)
Browse files Browse the repository at this point in the history
* Try to make DesignTest a fixture

* Try by copying modifiers

* Try to clear state.stylesheets
  • Loading branch information
hoxbro authored Jun 3, 2024
1 parent 6f63f81 commit 59c2be2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions panel/tests/theme/test_base.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
import pathlib

import pytest

from bokeh.models import ImportedStyleSheet

from panel.io.resources import CDN_DIST
from panel.io.state import state
from panel.theme.base import BOKEH_DARK, Design, Inherit
from panel.viewable import Viewable
from panel.widgets import FloatSlider, IntSlider, TextInput


@pytest.fixture(autouse=True)
def _clear_state():
state._stylesheets.clear()


class DesignTest(Design):

modifiers = {
Expand Down

0 comments on commit 59c2be2

Please sign in to comment.