test_docs: Fix use of fixture when testing /team data.

This fixes a bug in how 449f7e2d4b
managed its fixture file.
This commit is contained in:
Tim Abbott 2020-04-08 13:08:04 -07:00
parent de97351b5a
commit 5988d021f9
1 changed files with 2 additions and 1 deletions

View File

@ -329,7 +329,8 @@ class IntegrationTest(TestCase):
class AboutPageTest(ZulipTestCase):
def test_endpoint(self) -> None:
result = self.client_get('/team/')
with self.settings(CONTRIBUTOR_DATA_FILE_PATH="zerver/tests/fixtures/authors.json"):
result = self.client_get('/team/')
self.assert_in_success_response(['Our amazing community'], result)
self.assert_in_success_response(['2017-11-20'], result)
self.assert_in_success_response(['timabbott', 'showell', 'gnprice', 'rishig'], result)