This repository was archived by the owner on Oct 1, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add broken tests for #65 * Add long raise test * Fix typo * Improve raise printing * Add another test for raise * Use groupConcat and indentConcat
- Loading branch information
Showing
4 changed files
with
126 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`raise.py 1`] = ` | ||
raise | ||
raise ValueError | ||
raise ValueError("error") | ||
raise NotImplementedError('example.') | ||
raise forms.ValidationError( | ||
self.error_messages['invalid_login'], | ||
code='invalid_login', | ||
params={ | ||
'username': self.username_field.verbose_name | ||
} | ||
) | ||
raise SomeErrorWithAReallyReallyVeryVeryExtremelyExtensivelyLongNameSoItBreaks() | ||
raise NotImplementedError( | ||
'The SimpleListFilter.lookups() method must be overridden to ' | ||
'return a list of tuples (value, verbose value).' | ||
) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
raise | ||
raise ValueError | ||
raise ValueError("error") | ||
raise NotImplementedError("example.") | ||
raise ( | ||
forms.ValidationError(self.error_messages[ | ||
"invalid_login" | ||
], code="invalid_login", params={ | ||
"username": self.username_field.verbose_name | ||
}) | ||
) | ||
raise ( | ||
SomeErrorWithAReallyReallyVeryVeryExtremelyExtensivelyLongNameSoItBreaks() | ||
) | ||
raise ( | ||
NotImplementedError('The SimpleListFilter.lookups() method must be overridden to ' | ||
'return a list of tuples (value, verbose value).') | ||
) | ||
`; | ||
|
||
exports[`raise.py 2`] = ` | ||
raise | ||
raise ValueError | ||
raise ValueError("error") | ||
raise NotImplementedError('example.') | ||
raise forms.ValidationError( | ||
self.error_messages['invalid_login'], | ||
code='invalid_login', | ||
params={ | ||
'username': self.username_field.verbose_name | ||
} | ||
) | ||
raise SomeErrorWithAReallyReallyVeryVeryExtremelyExtensivelyLongNameSoItBreaks() | ||
raise NotImplementedError( | ||
'The SimpleListFilter.lookups() method must be overridden to ' | ||
'return a list of tuples (value, verbose value).' | ||
) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
raise | ||
raise ValueError | ||
raise ValueError("error") | ||
raise NotImplementedError("example.") | ||
raise ( | ||
forms.ValidationError(self.error_messages[ | ||
"invalid_login" | ||
], code="invalid_login", params={ | ||
"username": self.username_field.verbose_name | ||
}) | ||
) | ||
raise ( | ||
SomeErrorWithAReallyReallyVeryVeryExtremelyExtensivelyLongNameSoItBreaks() | ||
) | ||
raise ( | ||
NotImplementedError('The SimpleListFilter.lookups() method must be overridden to ' | ||
'return a list of tuples (value, verbose value).') | ||
) | ||
`; |
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,2 @@ | ||
run_spec(__dirname, ["python"], { pythonVersion: "2" }); | ||
run_spec(__dirname, ["python"], { pythonVersion: "3" }); |
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,20 @@ | ||
raise | ||
raise ValueError | ||
raise ValueError("error") | ||
|
||
raise NotImplementedError('example.') | ||
|
||
raise forms.ValidationError( | ||
self.error_messages['invalid_login'], | ||
code='invalid_login', | ||
params={ | ||
'username': self.username_field.verbose_name | ||
} | ||
) | ||
|
||
raise SomeErrorWithAReallyReallyVeryVeryExtremelyExtensivelyLongNameSoItBreaks() | ||
|
||
raise NotImplementedError( | ||
'The SimpleListFilter.lookups() method must be overridden to ' | ||
'return a list of tuples (value, verbose value).' | ||
) |