Skip to content

Commit

Permalink
Skip coverage for live server
Browse files Browse the repository at this point in the history
Unfortunately those tests are skipped on Windows, which skews code coverage stats.
  • Loading branch information
nicoddemus committed Oct 9, 2023
1 parent e0e3c2c commit 55a4c3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pytest_flask/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_login(self):


@pytest.fixture(scope=_determine_scope)
def live_server(request, app, pytestconfig):
def live_server(request, app, pytestconfig): # pragma: no cover
"""Run application in a separate process.
When the ``live_server`` fixture is applied, the ``url_for`` function
Expand Down
2 changes: 1 addition & 1 deletion src/pytest_flask/live_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
multiprocessing = multiprocessing.get_context("fork")


class LiveServer:
class LiveServer: # pragma: no cover
"""The helper class used to manage a live server. Handles creation and
stopping application in a separate process.
Expand Down

0 comments on commit 55a4c3a

Please sign in to comment.