diff --git a/test/completion/django.py b/test/completion/django.py index 88a508d9..16d31202 100644 --- a/test/completion/django.py +++ b/test/completion/django.py @@ -49,6 +49,9 @@ class BusinessModel(models.Model): unidentifiable = NOT_FOUND + def method(self): + return 42 + # ----------------- # Model attribute inference # ----------------- @@ -132,6 +135,11 @@ model_instance.unidentifiable #! ['unidentifiable = NOT_FOUND'] model_instance.unidentifiable +#? int() +model_instance.method() +#! ['def method'] +model_instance.method + # ----------------- # Queries # -----------------