reflex/tests/units/components/recharts/test_cartesian.py
Thomas Brandého 3f538865b5
reorganize all tests in a single top folder (#3981)
* lift node version restraint to allow more recent version if already installed

* add node test for latest version

* change python version

* use purple for debug logs

* update workflow

* add playwright dev dependency

* update workflow

* change test

* oops

* improve test

* update test

* fix tests

* mv units tests to a subfolder

* reorganize tests

* fix install

* update test_state

* revert node changes and only keep new tests organization

* move integration tests in tests/integration

* fix integration workflow

* fix dockerfile workflow

* fix dockerfile workflow 2

* fix shared_state
2024-09-26 01:22:52 +02:00

51 lines
934 B
Python

from reflex.components.recharts import (
Area,
Bar,
Brush,
Line,
Scatter,
XAxis,
YAxis,
ZAxis,
)
def test_xaxis():
x_axis = XAxis.create("x").render()
assert x_axis["name"] == "RechartsXAxis"
def test_yaxis():
x_axis = YAxis.create("y").render()
assert x_axis["name"] == "RechartsYAxis"
def test_zaxis():
x_axis = ZAxis.create("z").render()
assert x_axis["name"] == "RechartsZAxis"
def test_brush():
brush = Brush.create().render()
assert brush["name"] == "RechartsBrush"
def test_area():
area = Area.create().render()
assert area["name"] == "RechartsArea"
def test_bar():
bar = Bar.create().render()
assert bar["name"] == "RechartsBar"
def test_line():
line = Line.create().render()
assert line["name"] == "RechartsLine"
def test_scatter():
scatter = Scatter.create().render()
assert scatter["name"] == "RechartsScatter"