Skip to content

Commit c38ac3b

Browse files
committed
Remove coverage from some unneeded places
1 parent b67101a commit c38ac3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/reactpy_router/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def on_click(_event: dict[str, Any]) -> None:
3838
if "className" in attributes:
3939
class_name = " ".join([attributes.pop("className"), class_name])
4040
# TODO: This can be removed when ReactPy stops supporting underscores in attribute names
41-
if "class_name" in attributes:
41+
if "class_name" in attributes: # pragma: no cover
4242
class_name = " ".join([attributes.pop("class_name"), class_name])
4343

4444
attrs = {

src/reactpy_router/hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class _RouteState:
2121

2222
def _use_route_state() -> _RouteState:
2323
route_state = use_context(_route_state_context)
24-
if route_state is None:
24+
if route_state is None: # pragma: no cover
2525
raise RuntimeError(
2626
"ReactPy-Router was unable to find a route context. Are you "
2727
"sure this hook/component is being called within a router?"

0 commit comments

Comments
 (0)