Skip to content

Commit

Permalink
Remove Django SimpleTestCase methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanoch committed Jul 28, 2016
1 parent 0de9e99 commit 8f44e4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ When both ``flake8`` and ``flake8-pytest`` are installed, the plugin is
available in ``flake8``::

$ flake8 --version
2.0 (pep8: 1.4.5, flake8-pytest: 1.0, pyflakes: 0.6.1)
2.0 (pep8: 1.4.5, flake8-pytest: 1.1, pyflakes: 0.6.1)
15 changes: 6 additions & 9 deletions flake8_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@

from sys import stdin

__version__ = '1.0'
__version__ = '1.1'

PYTEST_ERROR_CODE = 'T003'
PYTEST_ERROR_MESSAGE = 'use of Django-style assert statement found (instead of regular assert)'
ASSERTS = ('assertAlmostEqual', 'assertAlmostEquals', 'assertContains', 'assertDictContainsSubset', 'assertDictEqual',
'assertEqual', 'assertEquals', 'assertFalse', 'assertFieldOutput', 'assertFormError', 'assertFormsetError',
'assertGreater', 'assertGreaterEqual', 'assertHTMLEqual', 'assertHTMLNotEqual', 'assertIn', 'assertInHTML',
'assertIs', 'assertIsInstance', 'assertIsNone', 'assertIsNot', 'assertIsNotNone', 'assertItemsEqual',
'assertJSONEqual', 'assertJSONNotEqual', 'assertLess', 'assertLessEqual', 'assertListEqual',
ASSERTS = ('assertAlmostEqual', 'assertAlmostEquals', 'assertDictEqual', 'assertEqual', 'assertEquals', 'assertFalse',
'assertGreater', 'assertGreaterEqual', 'assertIn', 'assertIs', 'assertIsInstance', 'assertIsNone',
'assertIsNot', 'assertIsNotNone', 'assertItemsEqual', 'assertLess', 'assertLessEqual', 'assertListEqual',
'assertMultiLineEqual', 'assertNotAlmostEqual', 'assertNotAlmostEquals', 'assertNotContains',
'assertNotEqual', 'assertNotEquals', 'assertNotIn', 'assertNotIsInstance', 'assertNotRegexpMatches',
'assertNumQueries', 'assertQuerysetEqual', 'assertRaises', 'assertRaisesMessage', 'assertRaisesRegexp',
'assertRedirects', 'assertRegexpMatches', 'assertSequenceEqual', 'assertSetEqual', 'assertTemplateNotUsed',
'assertTemplateUsed', 'assertTrue', 'assertTupleEqual', 'assertXMLEqual', 'assertXMLNotEqual', 'assert_')
'assertRaises', 'assertRaisesMessage', 'assertRaisesRegexp', 'assertRegexpMatches', 'assertSequenceEqual',
'assertSetEqual', 'assertTrue', 'assertTupleEqual', 'assert_')


class PytestAssertChecker(object):
Expand Down

0 comments on commit 8f44e4f

Please sign in to comment.