Skip to content

Commit e9f6d33

Browse files
committed
Remove unneeded caplog fixtures
1 parent f21e963 commit e9f6d33

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

tests/test_asgi/test_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async def app(scope, receive, send): ...
119119
assert response.status_code == 404
120120

121121

122-
async def test_templatetag_bad_kwargs(caplog, browser):
122+
async def test_templatetag_bad_kwargs(browser):
123123
"""Override for the display fixture that uses ReactPyMiddleware."""
124124
templates = Jinja2Templates(
125125
env=JinjaEnvironment(

tests/test_core/test_hooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ async def effect():
518518
await asyncio.wait_for(cleanup_ran.wait(), 1)
519519

520520

521-
async def test_use_async_effect_cancel(caplog):
521+
async def test_use_async_effect_cancel():
522522
component_hook = HookCatcher()
523523
effect_ran = asyncio.Event()
524524
effect_was_cancelled = asyncio.Event()
@@ -557,7 +557,7 @@ async def effect():
557557
event_that_never_occurs.set()
558558

559559

560-
async def test_error_in_effect_is_gracefully_handled(caplog):
560+
async def test_error_in_effect_is_gracefully_handled():
561561
@reactpy.component
562562
def ComponentWithEffect():
563563
@reactpy.hooks.use_effect

tests/test_core/test_layout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_layout_expects_abstract_component():
6363
Layout(reactpy.html.div())
6464

6565

66-
async def test_layout_cannot_be_used_outside_context_manager(caplog):
66+
async def test_layout_cannot_be_used_outside_context_manager():
6767
@reactpy.component
6868
def Component(): ...
6969

@@ -691,7 +691,7 @@ def HasNestedEventHandler():
691691
assert last_event_handler() is None
692692

693693

694-
async def test_duplicate_sibling_keys_causes_error(caplog):
694+
async def test_duplicate_sibling_keys_causes_error():
695695
hook = HookCatcher()
696696
should_error = True
697697

tests/test_reactjs/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_module_name_suffix(name, suffix):
3636

3737

3838
@responses.activate
39-
def test_resolve_module_exports_from_file(caplog):
39+
def test_resolve_module_exports_from_file():
4040
responses.add(
4141
responses.GET,
4242
"https://some.external.url",

0 commit comments

Comments
 (0)