'Pycharm cannot suggest import for django.test

Not suggest any class in django.test, but worked in django.http.

How to fix it ?

enter image description here

enter image description here

enter image description here



Solution 1:[1]

you have to import the @classmethod for the test class For example :

class YourTestClass(TestCase):
    @classmethod

This link will help you to understand

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 tomerpacific