From 7b342bee0a62bc9752e78089a36be7ded6f90555 Mon Sep 17 00:00:00 2001 From: Marcel Wilson Date: Thu, 23 May 2024 12:06:41 -0500 Subject: [PATCH] removing coverage exclusions by-line since we are no longer covering any of the test modules. --- tests/test_actions.py | 2 +- tests/test_pacing.py | 6 +++--- tests/test_pacing_future.py | 6 +++--- tests/test_settings.py | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/test_actions.py b/tests/test_actions.py index a8bf72d..c310244 100644 --- a/tests/test_actions.py +++ b/tests/test_actions.py @@ -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) diff --git a/tests/test_pacing.py b/tests/test_pacing.py index a4d38e7..8f76665 100644 --- a/tests/test_pacing.py +++ b/tests/test_pacing.py @@ -51,7 +51,7 @@ 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 @@ -59,7 +59,7 @@ def does_return_something(self, toggle: bool = False) -> Optional[int]: # 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 @@ -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" diff --git a/tests/test_pacing_future.py b/tests/test_pacing_future.py index 3b34a05..44ac4f3 100644 --- a/tests/test_pacing_future.py +++ b/tests/test_pacing_future.py @@ -29,7 +29,7 @@ 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 @@ -37,7 +37,7 @@ def does_return_something(self, toggle: bool = False) -> int | None: # 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 @@ -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" diff --git a/tests/test_settings.py b/tests/test_settings.py index d7504e0..79bccc0 100644 --- a/tests/test_settings.py +++ b/tests/test_settings.py @@ -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 @@ -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