Commit eeaed71ec1fa630936977750a4f7739a4e2c8c2c
1 parent
efd80e8c
Exists in
master
and in
11 other branches
Fixed mock
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com> Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com> Signed-off-by: Sergio Oliveira <sergio@tracy.com.br>
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
colab/super_archives/tests/test_privatelist.py
... | ... | @@ -17,10 +17,10 @@ class ArchivesViewTest(TestCase): |
17 | 17 | |
18 | 18 | def test_see_only_private_list_if_member(self): |
19 | 19 | mailman.get_user_mailinglists = mock.Mock( |
20 | - return_value="[{'listname': 'privatelist'}]") | |
20 | + return_value=[{'listname': 'privatelist'}]) | |
21 | 21 | mailman.extract_listname_from_list = mock.Mock( |
22 | - return_value="['privatelist']") | |
23 | - mailman.list_users = mock.Mock(return_value="['johndoe@example.com']") | |
22 | + return_value=['privatelist']) | |
23 | + mailman.list_users = mock.Mock(return_value=['johndoe@example.com']) | |
24 | 24 | |
25 | 25 | self.authenticate_user() |
26 | 26 | request = self.client.get('/archives/thread/') | ... | ... |