mirror of
https://github.com/fspc/workstand.git
synced 2026-09-16 16:41:38 -04:00
Add member notes (#35)
* Linting. * Clean up. * Hope this makes installs better. * Rework edit member form with notes and banned and suspended. * Add slack notifications. * Display new member statuses. * Update docker run command migrate, collectstatic, and rebuild_index * Formatting and only push when master. * Don’t need this for an edit page. * More meaningful action. * Add testing requirements. * Run tests during build. * Use prod settings for testing. * Nail down the order of those tests.
This commit is contained in:
@@ -104,6 +104,10 @@ class TestMemberSignIn(TestCase):
|
||||
|
||||
self.assertEqual(response.status_code, 201)
|
||||
self.assertIsInstance(response, JsonResponse)
|
||||
data = json.loads(response.content.decode())
|
||||
results = data['results']
|
||||
self.assertTrue('banned' in results)
|
||||
self.assertTrue('suspended' in results)
|
||||
self.assertTrue(visit)
|
||||
|
||||
def test_post_no_member(self):
|
||||
@@ -137,3 +141,5 @@ class TestMemberSignIn(TestCase):
|
||||
data = json.loads(data_string)
|
||||
|
||||
self.assertTrue(len(data), 3)
|
||||
self.assertTrue('banned' in data[0]['member'])
|
||||
self.assertTrue('suspended' in data[0]['member'])
|
||||
|
||||
Reference in New Issue
Block a user