Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Update a test to provide the same data throughout the UI Auth.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Mar 23, 2020
1 parent 5111d86 commit d0ece9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_terms_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def prepare(self, reactor, clock, hs):

def test_ui_auth(self):
# Do a UI auth request
request, channel = self.make_request(b"POST", self.url, b"{}")
request_data = json.dumps({"username": "kermit", "password": "monkey"})
request, channel = self.make_request(b"POST", self.url, request_data)
self.render(request)

self.assertEquals(channel.result["code"], b"401", channel.result)
Expand Down

0 comments on commit d0ece9e

Please sign in to comment.