-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add nested parse in operations log.parse_values
- Loading branch information
Showing
6 changed files
with
25 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from tests.conftest import setup_service | ||
|
||
setup_service(__name__, backend='django', async_param=[False]) | ||
|
||
|
||
class TestLog: | ||
def test_parse_values(self, service): | ||
from utilmeta.ops.log import Logger | ||
logger = Logger() | ||
assert (logger.parse_values([{'user': {'password': '123', 'token': 'XXX'}}]) == | ||
[{'user': {'password': '********', 'token': '********'}}]) | ||
assert (logger.parse_values([{'user': {'UserPassword': '123', 'Access_Token': 'XXX'}}]) == | ||
[{'user': {'UserPassword': '********', 'Access_Token': '********'}}]) |
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