Skip to content

Commit

Permalink
removing coverage exclusions by-line since we are no longer covering …
Browse files Browse the repository at this point in the history
…any of the test modules.
  • Loading branch information
bandophahita committed May 23, 2024
1 parent 49cad50 commit 7b342be
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ def test_output_first_passes(
) -> None:
class FakeActionFail(Performable):
@beat("{} tries to FakeActionFail")
def perform_as(self, _: Actor) -> None: # pragma: no cover
def perform_as(self, _: Actor) -> None:
msg = "This Fails!"
raise AssertionError(msg)

Expand Down
6 changes: 3 additions & 3 deletions tests/test_pacing.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ def do_not_log_me_man(self) -> None:
@beat("Foobar...")
def does_return_something(self, toggle: bool = False) -> Optional[int]:
if toggle:
return 1 # pragma: no cover
return 1
return None

# purposfully not annotated
@beat("Baz?")
# type: ignore[no-untyped-def]
def no_annotations_rt_none(self, toggle=False): # noqa: ANN001, ANN201
if toggle:
return 1 # pragma: no cover
return 1
return None

# purposfully not annotated
Expand All @@ -68,7 +68,7 @@ def no_annotations_rt_none(self, toggle=False): # noqa: ANN001, ANN201
def no_annotations_rt_int(self, toggle=False): # noqa: ANN001, ANN201
if toggle:
return 1
return None # pragma: no cover
return None

def describe(self) -> str:
return "CornerCase"
Expand Down
6 changes: 3 additions & 3 deletions tests/test_pacing_future.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ def do_not_log_me_man(self) -> None:
@beat("Foobar...")
def does_return_something(self, toggle: bool = False) -> int | None:
if toggle:
return 1 # pragma: no cover
return 1
return None

# purposfully not annotated
@beat("Baz?")
# type: ignore[no-untyped-def]
def no_annotations_rt_none(self, toggle=False): # noqa: ANN001, ANN201
if toggle:
return 1 # pragma: no cover
return 1
return None

# purposfully not annotated
Expand All @@ -46,7 +46,7 @@ def no_annotations_rt_none(self, toggle=False): # noqa: ANN001, ANN201
def no_annotations_rt_int(self, toggle=False): # noqa: ANN001, ANN201
if toggle:
return 1
return None # pragma: no cover
return None

def describe(self) -> str:
return "CornerCase"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_init_overwrites_env(self) -> None:
def test_can_be_changed_at_runtime(self) -> None:
try:
screenpy_settings.TIMEOUT = 4
except TypeError as exc: # pragma: no cover
except TypeError as exc:
msg = "ScreenPySettings could not be changed at runtime."
raise AssertionError(msg) from exc

Expand Down Expand Up @@ -131,7 +131,7 @@ def test_init_overwrites_env(self) -> None:
def test_can_be_changed_at_runtime(self) -> None:
try:
stdout_adapter_settings.INDENT_CHAR = "?"
except TypeError as exc: # pragma: no cover
except TypeError as exc:
msg = "StdOutAdapterSettings could not be changed at runtime."
raise AssertionError(msg) from exc

Expand Down

0 comments on commit 7b342be

Please sign in to comment.