Merge pull request #25646 from open-craft/0x29a/squash_tests_warnings

Replace 'multi_db = True' with 'databases = {alias for alias in connections}'
This commit is contained in:
Feanil Patel
2020-11-20 09:53:24 -05:00
committed by GitHub
7 changed files with 20 additions and 13 deletions

View File

@@ -5,6 +5,7 @@ Test the Blockstore-based XBlock runtime and content libraries together.
import json
from completion.test_utils import CompletionWaffleTestMixin
from django.db import connections
from django.test import TestCase, override_settings
from organizations.models import Organization
from rest_framework.test import APIClient
@@ -183,7 +184,7 @@ class ContentLibraryXBlockUserStateTest(ContentLibraryContentTestMixin, TestCase
if the library allows direct learning.
"""
multi_db = True
databases = {alias for alias in connections}
@XBlock.register_temp_plugin(UserStateTestBlock, UserStateTestBlock.BLOCK_TYPE)
def test_default_values(self):