bulk_create: Mark bulk_create_streams as nocoverage.

It's only used in `populate_db`, so it gets tested that way.
This commit is contained in:
Tim Abbott 2018-05-09 16:27:35 -07:00
parent 81e17c7d47
commit 7e2841b358
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,6 @@ not_yet_fully_covered = {
'zerver/lib/unminify.py',
'zerver/lib/utils.py',
# Low priority for coverage
'zerver/lib/bulk_create.py',
'zerver/lib/ccache.py',
'zerver/lib/generate_test_data.py',
'zerver/lib/statistics.py',

View File

@ -58,8 +58,9 @@ def bulk_create_users(realm: Realm,
recipient=recipients_by_email[email]))
Subscription.objects.bulk_create(subscriptions_to_create)
# This is only sed in populate_db, so doesn't realy need tests
def bulk_create_streams(realm: Realm,
stream_dict: Dict[Text, Dict[Text, Any]]) -> None:
stream_dict: Dict[Text, Dict[Text, Any]]) -> None: # nocoverage
existing_streams = frozenset([name.lower() for name in
Stream.objects.filter(realm=realm)
.values_list('name', flat=True)])