Closed LilyFoote closed 5 years ago
self.call_view(request)
I could do:
def call_view(self, *args, **kwargs):
return self.get_view()(*args, **kwargs)
but that's harder to test.
I don't see the benefit of this either way.
It's DRYer tests. I often see something like:
view = self.view.as_view()
response = view(request)
This would become:
response = self.call_view(request)
¯\_(ツ)_/¯
Not worth it.
Seems odd to me that this is a
property
. How were you expecting this to be used?