mirror of https://github.com/zulip/zulip.git
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:
parent
81e17c7d47
commit
7e2841b358
|
@ -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',
|
||||
|
|
|
@ -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)])
|
||||
|
|
Loading…
Reference in New Issue