Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Dec 22, 2022
1 parent 360bd04 commit cf5b7a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/users/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def test_public_sources(self, source_set_mock):

@patch('core.orgs.models.Organization.collection_set')
def test_public_collections(self, collection_set_mock):
collection_set_mock.filter = Mock(return_value=Mock(exclude=Mock(return_value=Mock(count=Mock(return_value=10)))))
collection_set_mock.filter = Mock(
return_value=Mock(exclude=Mock(return_value=Mock(count=Mock(return_value=10)))))

self.assertEqual(Organization().public_collections, 10)
collection_set_mock.filter.assert_called_once_with(version=HEAD)
Expand Down

0 comments on commit cf5b7a9

Please sign in to comment.