Skip to content

Commit

Permalink
fix: method.upper()
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Feb 7, 2024
1 parent c8123f2 commit 3c43adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codeforlife/tests/model_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def init_request(
kwargs.setdefault("path", "/")
kwargs.setdefault("content_type", "application/json")

request = self.request_factory.generic(method, **kwargs)
request = self.request_factory.generic(method.upper(), **kwargs)
if user:
request.user = user

Expand Down

0 comments on commit 3c43adb

Please sign in to comment.