Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some more tests #3965

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions tests/components/datadisplay/test_dataeditor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from reflex.components.datadisplay.dataeditor import DataEditor


def test_dataeditor():
editor_wrapper = DataEditor.create().render()
editor = editor_wrapper["children"][0]
assert editor_wrapper["name"] == "div"
assert editor_wrapper["props"] == [
'css={({ ["width"] : "100%", ["height"] : "100%" })}'
]
assert editor["name"] == "DataEditor"
38 changes: 38 additions & 0 deletions tests/components/recharts/test_polar.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
from reflex.components.recharts import (
Pie,
PolarAngleAxis,
PolarGrid,
PolarRadiusAxis,
Radar,
RadialBar,
)


def test_pie():
pie = Pie.create().render()
assert pie["name"] == "RechartsPie"


def test_radar():
radar = Radar.create().render()
assert radar["name"] == "RechartsRadar"


def test_radialbar():
radialbar = RadialBar.create().render()
assert radialbar["name"] == "RechartsRadialBar"


def test_polarangleaxis():
polarangleaxis = PolarAngleAxis.create().render()
assert polarangleaxis["name"] == "RechartsPolarAngleAxis"


def test_polargrid():
polargrid = PolarGrid.create().render()
assert polargrid["name"] == "RechartsPolarGrid"


def test_polarradiusaxis():
polarradiusaxis = PolarRadiusAxis.create().render()
assert polarradiusaxis["name"] == "RechartsPolarRadiusAxis"
Loading