
* build pyi files when building/publishing 3rd party * fix typo in workflow * add future annotation * add tests to pass coverage check * add more unit tests * omit pyi_generator from test coverage * change black from dev deps to direct deps * remake all pyi * format pyi if black is present, return as if otherwise * fix requested changes --------- Co-authored-by: Masen Furer <m_github@0x26.net>
39 lines
1.0 KiB
Python
39 lines
1.0 KiB
Python
from reflex.components.core.responsive import (
|
|
desktop_only,
|
|
mobile_and_tablet,
|
|
mobile_only,
|
|
tablet_and_desktop,
|
|
tablet_only,
|
|
)
|
|
from reflex.components.radix.themes.layout.box import Box
|
|
|
|
|
|
def test_mobile_only():
|
|
"""Test the mobile_only responsive component."""
|
|
component = mobile_only("Content")
|
|
assert isinstance(component, Box)
|
|
|
|
|
|
def test_tablet_only():
|
|
"""Test the tablet_only responsive component."""
|
|
component = tablet_only("Content")
|
|
assert isinstance(component, Box)
|
|
|
|
|
|
def test_desktop_only():
|
|
"""Test the desktop_only responsive component."""
|
|
component = desktop_only("Content")
|
|
assert isinstance(component, Box)
|
|
|
|
|
|
def test_tablet_and_desktop():
|
|
"""Test the tablet_and_desktop responsive component."""
|
|
component = tablet_and_desktop("Content")
|
|
assert isinstance(component, Box)
|
|
|
|
|
|
def test_mobile_and_tablet():
|
|
"""Test the mobile_and_tablet responsive component."""
|
|
component = mobile_and_tablet("Content")
|
|
assert isinstance(component, Box)
|