From 5988d021f9715cb342b051ac96445b7ae4917d84 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 8 Apr 2020 13:08:04 -0700 Subject: [PATCH] test_docs: Fix use of fixture when testing /team data. This fixes a bug in how 449f7e2d4beb117e73b8cdeb8f906163c1083689 managed its fixture file. --- zerver/tests/test_docs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zerver/tests/test_docs.py b/zerver/tests/test_docs.py index 4a6b0a91c6..626604bb40 100644 --- a/zerver/tests/test_docs.py +++ b/zerver/tests/test_docs.py @@ -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)