You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a test case for this, but haven't had time to fix it.
"""
Checks that Pylint does not complain about a standard test.
"""
from django.test import TestCase
from django.db import models
class SomeModel(models.Model):
"""Just a model."""
pass
class SomeTestCase(TestCase):
"""A test cast."""
def test_thing(self):
"""Test a thing."""
expected_object = SomeModel()
response = self.client.get('/get/some/thing/')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.context['object'], expected_object)
The following test code:
…causes the following pylint message:
pylint==1.5.6 and pylint-django==0.7.2.
The text was updated successfully, but these errors were encountered: