Skip to content
This repository was archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Add broken tests for #65
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Mar 3, 2018
1 parent e7f8446 commit b301d97
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
71 changes: 71 additions & 0 deletions tests/python_raise/__snapshots__/jsfmt.spec.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`raise.py 1`] = `
raise
raise ValueError
raise ValueError("error")
raise NotImplementedError(
'The SimpleListFilter.lookups() method must be overridden to '
'return a list of tuples (value, verbose value).'
)
raise forms.ValidationError(
self.error_messages['invalid_login'],
code='invalid_login',
params={
'username': self.username_field.verbose_name
}
)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
raise
raise ValueError
raise ValueError("error")
raise NotImplementedError(
'The SimpleListFilter.lookups() method must be overridden to '
'return a list of tuples (value, verbose value).'
)
raise forms.ValidationError(
self.error_messages["invalid_login"],
code="invalid_login",
params={"username": self.username_field.verbose_name}
)
`;

exports[`raise.py 2`] = `
raise
raise ValueError
raise ValueError("error")
raise NotImplementedError(
'The SimpleListFilter.lookups() method must be overridden to '
'return a list of tuples (value, verbose value).'
)
raise forms.ValidationError(
self.error_messages['invalid_login'],
code='invalid_login',
params={
'username': self.username_field.verbose_name
}
)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
raise
raise ValueError
raise ValueError("error")
raise NotImplementedError(
'The SimpleListFilter.lookups() method must be overridden to '
'return a list of tuples (value, verbose value).'
)
raise forms.ValidationError(
self.error_messages["invalid_login"],
code="invalid_login",
params={"username": self.username_field.verbose_name}
)
`;
2 changes: 2 additions & 0 deletions tests/python_raise/jsfmt.spec.js
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" });
16 changes: 16 additions & 0 deletions tests/python_raise/raise.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
raise
raise ValueError
raise ValueError("error")

raise NotImplementedError(
'The SimpleListFilter.lookups() method must be overridden to '
'return a list of tuples (value, verbose value).'
)

raise forms.ValidationError(
self.error_messages['invalid_login'],
code='invalid_login',
params={
'username': self.username_field.verbose_name
}
)

0 comments on commit b301d97

Please sign in to comment.