Skip to content

Commit

Permalink
Excluded monkey from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Apr 22, 2020
1 parent c37e7b3 commit cecd8e8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[run]
branch = True
source = ./labthings
omit = .venv/*, labthings/server/wsgi/*
omit = .venv/*, labthings/server/wsgi/*, , labthings/server/monkey/*
concurrency = greenlet

[report]
Expand Down
15 changes: 15 additions & 0 deletions labthings/server/monkey.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
from gevent.monkey import patch_all

__all__ = ["patch_all"]

"""
NOTE: THIS FILE IS EXCLUDED FROM OUR UNIT TESTS.
MONKEY PATCHING IN THE MIDDLE OF A TEST SUITE RUNNING
MAY CAUSE PROBLEMS.
GIVEN THAT THIS MODULE IS SIMPLY A PROXY FOR GEVENTS
MONKEY PATCHER, TESTSING IS FAIRLY REDUNDANT ANYWAY.
THIS SHOULD BE PERIODICALLY REVISITED TO MAKE SURE ITS
STILL TRUE.
THANKS
"""

0 comments on commit cecd8e8

Please sign in to comment.