-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the warning that's displayed when using HMA on complex schemas (…
- Loading branch information
Showing
4 changed files
with
9 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -249,9 +249,9 @@ def _print_estimate_warning(self): | |
+ '\n' | ||
) | ||
self._print( | ||
"We recommend simplifying your metadata schema using 'sdv.utils.poc.simplify_sch" | ||
"ema'.\nIf this is not possible, contact us at [email protected] for enterprise solut" | ||
'ions.\n' | ||
'We recommend simplifying your metadata schema using ' | ||
"'sdv.utils.poc.simplify_schema'.\nIf this is not possible, please visit " | ||
'datacebo.com and reach out to us for enterprise solutions.\n' | ||
) | ||
|
||
def preprocess(self, data): | ||
|
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 |
---|---|---|
|
@@ -722,7 +722,7 @@ def test_warning_message_too_many_cols(self, capsys): | |
key_phrases = [ | ||
r'PerformanceAlert:', | ||
r'large number of columns.', | ||
r'contact us at [email protected] for enterprise solutions.', | ||
r'please visit datacebo.com and reach out to us for enterprise solutions.', | ||
] | ||
|
||
# Run | ||
|
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 |
---|---|---|
|
@@ -76,8 +76,10 @@ def test_simplify_schema(capsys): | |
r'matches\s*39\s*412\s*' | ||
r'players\s*5\s*378\s*' | ||
r'teams\s*1\s*173004\s*' | ||
r"We recommend simplifying your metadata schema using 'sdv.utils.poc.simplify_schema'\.\s*" | ||
r'If this is not possible, contact us at [email protected] for enterprise solutions\.' | ||
r'We recommend simplifying your metadata schema using ' | ||
r"'sdv.utils.poc.simplify_schema'\.\s*" | ||
r'If this is not possible, please visit ' | ||
r'datacebo.com and reach out to us for enterprise solutions\.' | ||
) | ||
expected_message_after = re.compile( | ||
r'Success! The schema has been simplified\.\s+' | ||
|
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 |
---|---|---|
|
@@ -109,7 +109,7 @@ def test__print_estimate_warning(self, get_distributions_mock, estimate_mock, ca | |
key_phrases = [ | ||
r'PerformanceAlert:', | ||
r'large number of columns.', | ||
r'contact us at [email protected] for enterprise solutions.', | ||
r'please visit datacebo.com and reach out to us for enterprise solutions.', | ||
] | ||
|
||
# Run | ||
|