Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Apr 16, 2024
1 parent 32ad8b7 commit 64aa439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onadata/apps/main/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def _make_submission(

self.factory = APIRequestFactory()
if auth is None:
auth = DigestAuth("bob", "bob")
auth = DigestAuth(self.login_username, self.login_password)

tmp_file = None

Expand Down Expand Up @@ -306,7 +306,7 @@ def _make_submission_w_attachment(self, path, attachment_path):
data["media_file"] = open(attachment_path, "rb")

url = f"/{self.user.username}/submission"
auth = DigestAuth("bob", "bob")
auth = DigestAuth(self.login_username, self.login_password)
self.factory = APIRequestFactory()
request = self.factory.post(url, data)
request.user = self.user
Expand Down

0 comments on commit 64aa439

Please sign in to comment.