allow visible field when create announcement

This commit is contained in:
virusdefender
2017-01-25 09:36:33 +08:00
parent 1fc19eba21
commit 89859d9844
3 changed files with 4 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ class AnnouncementAdminTest(APITestCase):
self.assertSuccess(response)
def create_announcement(self):
return self.client.post(self.url, data={"title": "test", "content": "test"})
return self.client.post(self.url, data={"title": "test", "content": "test", "visible": True})
def test_create_announcement(self):
resp = self.create_announcement()