tests/migrations/test_state.py

Statement seems to have no effect
397
project_state.apps
Statement seems to have no effect
446
project_state.apps # We need to work with rendered models

tests/migrations/test_writer.py

Use of exec
171
exec(string, globals(), l)

tests/model_fields/test_imagefield.py

Statement seems to have no effect
169
p.mugshot.size

tests/model_fields/tests.py

Lambda may not be necessary
975
lazy_func = lazy(lambda: datetime.datetime.now(), datetime.datetime)

tests/model_forms/tests.py

class already defined line 382
430
class PriceFormWithoutQuantity(forms.ModelForm):

tests/model_inheritance/tests.py

Expression "Place.objects.get(name='Demon Dogs').restaurant.italianrestaurant" is assigned to nothing
225
Place.objects.get(name="Demon Dogs").restaurant.italianrestaurant
Statement seems to have no effect
249
p.restaurant

tests/modeladmin/tests.py

class already defined line 135
144
class BandAdmin(ModelAdmin):

tests/one_to_one/tests.py

Statement seems to have no effect
299
p.restaurant
Statement seems to have no effect
472
private_school.director

tests/prefetch_related/test_prefetch_related_objects.py

Expression "[list(book.first_time_authors.all()) for book in books]" is assigned to nothing
70
[list(book.first_time_authors.all()) for book in books]

tests/prefetch_related/tests.py

Expression "[list(b.first_time_authors.all()) for b in Book.objects.prefetch_related(u'first_time_authors')]" is assigned to nothing
70
[list(b.first_time_authors.all())
Expression "[list(a.books.all()) for a in without_prefetch]" is assigned to nothing
127
[list(a.books.all()) for a in without_prefetch]
Statement seems to have no effect
817
[c.content_object for c in qs]

tests/queries/tests.py

Expression "self.get_ordered_articles()[0:5:3]" is assigned to nothing
2296
self.get_ordered_articles()[0:5:3]
Expression "(Article.objects.all()[0:1]) & (Article.objects.all()[4:5])" is assigned to nothing
2329
Article.objects.all()[0:1] & Article.objects.all()[4:5]
Expression "Article.objects.all()[-1]" is assigned to nothing
2334
Article.objects.all()[-1]
Expression "Article.objects.all()[0:-5]" is assigned to nothing
2339
Article.objects.all()[0:-5]
Statement seems to have no effect
3579
task_get.creator.staffuser.staff