소스 검색

HUE-3410 [notebook] Update tests to the use the saved parent id

Romain Rigaux 9 년 전
부모
커밋
7b44854
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 1
      desktop/libs/notebook/src/notebook/connectors/tests/tests_hiveserver2.py
  2. 3 1
      desktop/libs/notebook/src/notebook/tests.py

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

@@ -240,7 +240,9 @@ class TestHiveserver2ApiWithHadoop(BeeswaxSampleProvider):
         "id": 1234,
         "sessions": [{"type": "hive", "properties": [], "id": "1234"}],
         "type": "query-hive",
-        "name": "Test Hiveserver2 Editor"
+        "name": "Test Hiveserver2 Editor",
+        "isSaved": false,
+        "parentUuid": null
       }
     """
     self.statement = 'SELECT description, salary FROM sample_07 WHERE (sample_07.salary > 100000) ORDER BY salary DESC LIMIT 1000'

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

@@ -57,7 +57,9 @@ class TestNotebookApi(object):
         "type": "query-hive",
         "id": 50010,
         "snippets": [],
-        "uuid": "5982a274-de78-083c-2efc-74f53dce744c"
+        "uuid": "5982a274-de78-083c-2efc-74f53dce744c",
+        "isSaved": false,
+        "parentUuid": null
     }
     """