mirror of
https://github.com/fspc/workstand.git
synced 2025-02-23 09:13:23 -05:00
Test can signin in with build.
This commit is contained in:
parent
88177cd00a
commit
7af88a1b2c
@ -143,3 +143,14 @@ class TestMemberSignIn(TestCase):
|
||||
self.assertTrue(len(data), 3)
|
||||
self.assertTrue('banned' in data[0]['member'])
|
||||
self.assertTrue('suspended' in data[0]['member'])
|
||||
|
||||
def test_signin_visit(self):
|
||||
"""
|
||||
Sign-in with 'BUILD' works.
|
||||
"""
|
||||
url = reverse('member_signin')
|
||||
c = Client()
|
||||
c.force_login(self.user)
|
||||
|
||||
response = c.post(url, data={'id': self.members[0].id, 'purpose': 'BUILD'})
|
||||
self.assertEqual(response.status_code, 201)
|
||||
|
Loading…
x
Reference in New Issue
Block a user