
* add workflow to check dependencies on release branch * rename action to follow convention of other actions * update workflow * bump poetry version * relock deps * update check to ignore pyright and ruff * oops, you saw nothing * split dep check in two job * fix frontend dep check * fix stuff * hmm yeah * nope nope nope * sigh * bump js versions for some packages * fix some warnings in tests * fix tests * try some options * try to set asyncio policy * debug dep check * fix attempt for backend dep * clean up output for backend check * run bun outdated on reflex-web to catch most of the packages * fix python version * fix python version * add missing env * fix bun command * fix workdir of frontend check * update packages version * up-pin plotly.js version * add debug ouput * clean frontend dep check output * fix output * fix async tests for redis * relock poetry.lock * Non-async functions do not need pytest_asyncio.fixture * test_state: close StateManagerRedis connection in test to avoid warning --------- Co-authored-by: Masen Furer <m_github@0x26.net>
75 lines
1.4 KiB
Python
75 lines
1.4 KiB
Python
from reflex.components.el.elements.media import (
|
|
Circle,
|
|
Defs,
|
|
Ellipse,
|
|
Line,
|
|
LinearGradient,
|
|
Path,
|
|
Polygon,
|
|
RadialGradient,
|
|
Rect,
|
|
Stop,
|
|
Svg,
|
|
Text,
|
|
)
|
|
|
|
|
|
def test_circle():
|
|
circle = Circle.create().render()
|
|
assert circle["name"] == "circle"
|
|
|
|
|
|
def test_defs():
|
|
defs = Defs.create().render()
|
|
assert defs["name"] == "defs"
|
|
|
|
|
|
def test_ellipse():
|
|
ellipse = Ellipse.create().render()
|
|
assert ellipse["name"] == "ellipse"
|
|
|
|
|
|
def test_line():
|
|
line = Line.create().render()
|
|
assert line["name"] == "line"
|
|
|
|
|
|
def test_linear_gradient():
|
|
linear_gradient = LinearGradient.create().render()
|
|
assert linear_gradient["name"] == "linearGradient"
|
|
|
|
|
|
def test_path():
|
|
path = Path.create().render()
|
|
assert path["name"] == "path"
|
|
|
|
|
|
def test_polygon():
|
|
polygon = Polygon.create().render()
|
|
assert polygon["name"] == "polygon"
|
|
|
|
|
|
def test_radial_gradient():
|
|
radial_gradient = RadialGradient.create().render()
|
|
assert radial_gradient["name"] == "radialGradient"
|
|
|
|
|
|
def test_rect():
|
|
rect = Rect.create().render()
|
|
assert rect["name"] == "rect"
|
|
|
|
|
|
def test_svg():
|
|
svg = Svg.create().render()
|
|
assert svg["name"] == "svg"
|
|
|
|
|
|
def test_text():
|
|
text = Text.create().render()
|
|
assert text["name"] == "text"
|
|
|
|
|
|
def test_stop():
|
|
stop = Stop.create().render()
|
|
assert stop["name"] == "stop"
|