Преглед изворни кода

HUE-8630 [core] Fix test_get_interpreters_to_show reset blacklist

jdesjean пре 7 година
родитељ
комит
255aa7c
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      desktop/libs/notebook/src/notebook/tests.py

+ 3 - 1
desktop/libs/notebook/src/notebook/tests.py

@@ -23,6 +23,8 @@ from nose.tools import assert_equal, assert_true, assert_false
 from django.contrib.auth.models import User
 from django.urls import reverse
 from azure.conf import is_adls_enabled
+
+from desktop.conf import APP_BLACKLIST
 from desktop.lib.django_test_util import make_logged_in_client
 from desktop.lib.test_utils import grant_access, add_permission
 from desktop.models import Directory, Document, Document2
@@ -454,7 +456,7 @@ def test_get_interpreters_to_show():
     ))
 
   try:
-    resets = [INTERPRETERS.set_for_testing(default_interpreters)]
+    resets = [INTERPRETERS.set_for_testing(default_interpreters), APP_BLACKLIST.set_for_testing('')]
 
     interpreters_shown_on_wheel_unset = get_ordered_interpreters()
     assert_equal(default_interpreters.values(), interpreters_shown_on_wheel_unset,