Skip to content

Commit 9e2ace2

Browse files
committed
functional hatch test command
1 parent fe84808 commit 9e2ace2

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

pyproject.toml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,24 @@ extra-dependencies = [
9393
"coverage[toml]>=6.5",
9494
"responses",
9595
"playwright",
96-
# TODO: Nuke this after removing backends from deps
97-
"sanic-testing",
9896
# TODO: This dependency needs to be pulled out. ReactPy no longer uses this in the core logic.
9997
"jsonpointer",
98+
# TODO: Nuke everything past this point after removing backends from deps
99+
"starlette >=0.13.6",
100+
"uvicorn[standard] >=0.19.0",
101+
"sanic>=21",
102+
"sanic-cors",
103+
"sanic-testing",
104+
"tracerite>=1.1.1",
105+
"setuptools",
106+
"uvicorn[standard]>=0.19.0",
107+
"fastapi >=0.63.0",
108+
"uvicorn[standard] >=0.19.0",
109+
"flask",
110+
"markupsafe>=1.1.1,<2.1",
111+
"flask-cors",
112+
"flask-sock",
113+
"tornado",
100114
]
101115

102116
[[tool.hatch.envs.hatch-test.matrix]]
@@ -111,7 +125,6 @@ testpaths = "tests"
111125
xfail_strict = true
112126
asyncio_mode = "auto"
113127
log_cli_level = "INFO"
114-
features = ["all"]
115128

116129
[tool.hatch.envs.default.scripts]
117130
test-cov = "playwright install && coverage run -m pytest {args:tests}"
@@ -129,7 +142,6 @@ REACTPY_DEBUG_MODE = "1"
129142
################################
130143

131144
[tool.hatch.envs.lint]
132-
features = ["all"]
133145
extra-dependencies = [
134146
"black==24.1.1",
135147
"ruff==0.0.278",

tests/test_backend/test_all.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,6 @@ def Counter():
7171
await counter.click()
7272

7373

74-
async def test_module_from_template(display: DisplayFixture):
75-
victory = reactpy.web.module_from_template("react", "victory-bar@35.4.0")
76-
VictoryBar = reactpy.web.export(victory, "VictoryBar")
77-
await display.show(VictoryBar)
78-
await display.page.wait_for_selector(".VictoryContainer")
79-
80-
8174
async def test_use_connection(display: DisplayFixture):
8275
conn = reactpy.Ref()
8376

0 commit comments

Comments
 (0)