forked from mozilla-services/socorro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this removes the chatty and chatty_rules flags and associated outputs from the processor and processor rules. a single rule was configured with chatty=true but a previous commit already inlined additional log output the flag would have generated. several tests set the value to true without asserting claims about the output.
- Loading branch information
Showing
7 changed files
with
8 additions
and
94 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
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 |
---|---|---|
|
@@ -319,8 +319,6 @@ def increment_1(s, d): | |
def test_rule_simple(self): | ||
fake_config = DotDict() | ||
fake_config.logger = Mock() | ||
fake_config.chatty_rules = False | ||
fake_config.chatty = False | ||
|
||
r1 = transform_rules.Rule(fake_config) | ||
assert r1.predicate(None, None, None, None) is True | ||
|
@@ -350,8 +348,6 @@ def _action(self, *args, **kwargs): | |
def test_rule_exceptions(self): | ||
fake_config = DotDict() | ||
fake_config.logger = Mock() | ||
fake_config.chatty_rules = False | ||
fake_config.chatty = False | ||
|
||
class BadPredicate(transform_rules.Rule): | ||
|
||
|
@@ -418,8 +414,6 @@ def mock_Client(**config): | |
|
||
fake_config = DotDict() | ||
fake_config.logger = Mock() | ||
fake_config.chatty_rules = False | ||
fake_config.chatty = False | ||
fake_config.sentry = DotDict() | ||
|
||
class SomeError(Exception): | ||
|
@@ -487,8 +481,6 @@ def mock_Client(**config): | |
|
||
fake_config = DotDict() | ||
fake_config.logger = Mock() | ||
fake_config.chatty_rules = False | ||
fake_config.chatty = False | ||
fake_config.sentry = DotDict() | ||
fake_config.sentry.dsn = ( | ||
'https://6e48583:[email protected]/01' | ||
|
@@ -514,8 +506,6 @@ def _predicate(self, *args, **kwargs): | |
|
||
def test_rules_in_config(self): | ||
config = DotDict() | ||
config.chatty_rules = False | ||
config.chatty = False | ||
config.tag = 'test.rule' | ||
config.action = 'apply_all_rules' | ||
config['RuleTestLaughable.laughable'] = 'wilma' | ||
|
@@ -543,8 +533,6 @@ def test_rules_in_config(self): | |
def test_rules_close(self): | ||
config = DotDict() | ||
config.logger = Mock().s | ||
config.chatty_rules = False | ||
config.chatty = False | ||
config.tag = 'test.rule' | ||
config.action = 'apply_all_rules' | ||
config['RuleTestLaughable.laughable'] = 'wilma' | ||
|
@@ -572,8 +560,6 @@ def test_rules_close(self): | |
def test_rules_close_if_close_method_available(self): | ||
config = DotDict() | ||
config.logger = Mock() | ||
config.chatty_rules = False | ||
config.chatty = False | ||
config.tag = 'test.rule' | ||
config.action = 'apply_all_rules' | ||
config.rules_list = DotDict() | ||
|
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