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:
Drew Larson
2017-02-16 22:53:49 -06:00
committed by GitHub
parent 960e107415
commit 49f37ed492
16 changed files with 318 additions and 167 deletions
@@ -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'])