Skip to content

Commit

Permalink
2.0.0 - Material Design 3
Browse files Browse the repository at this point in the history
Fix test according to the new API.
  • Loading branch information
HeaTTheatR committed Nov 27, 2023
1 parent 0079513 commit ec389cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kivymd/tests/label/test_disabled_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ def build(self):
return Builder.load_string(KV)

def check_disabled_color(self, *args):
assert self.root.ids.label._label.options["color"] == getattr(
self.theme_cls, "disabled_hint_text_color"
assert (
self.root.ids.label.disabled_color
== self.theme_cls.onSurfaceColor[:-1]
+ [self.root.ids.label.label_opacity_value_disabled_text]
)
self.stop()

Expand Down

0 comments on commit ec389cf

Please sign in to comment.