Show the scroll area only where there are one or more used plugins.
[bertos.git] / wizard / test / testModulePage.py
index 026e9ae9d9bafe4e91bf0d66f98ef9af7d75be87..321b1076c1f5479735620cb3f7d5b64dfb196a06 100644 (file)
@@ -19,6 +19,7 @@ sys.path.append("../")
 
 import BProject
 import BModulePage
+import bertos_utils
 
 # Add a custom UI_LOCATION constant
 BModulePage.UI_LOCATION = "../ui"
@@ -27,12 +28,12 @@ def main():
     app = QApplication([])
     app.project = BProject.BProject()
     page = BModulePage.BModulePage()
-    page._projectInfoStore("SOURCES_PATH", "../../")
+    page.setProjectInfo("SOURCES_PATH", "../../")
+    page.setProjectInfo("CPU_INFOS", {"TOOLCHAIN": "avr", "CPU_TAGS": []})
+    bertos_utils.loadSourceTree(page.project())
     page.reloadData()
     page.show()
     app.exec_()
 
-
 if __name__ == '__main__':
-    main()
-
+    main()
\ No newline at end of file