-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Make inclusion of metrics in SeldonMessage configurab…
- Loading branch information
1 parent
f710f38
commit 6818fb3
Showing
6 changed files
with
197 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
import pytest | ||
import logging | ||
|
||
import seldon_core | ||
|
||
|
||
logging.basicConfig(level=logging.DEBUG) | ||
|
||
|
||
@pytest.fixture(params=[True, False]) | ||
def client_gets_metrics(monkeypatch, request): | ||
value = request.param | ||
monkeypatch.setattr( | ||
seldon_core.user_model, "INCLUDE_METRICS_IN_CLIENT_RESPONSE", value | ||
) | ||
monkeypatch.setattr( | ||
seldon_core.seldon_methods, "INCLUDE_METRICS_IN_CLIENT_RESPONSE", value | ||
) | ||
return value |
Oops, something went wrong.