test_fsbrowser.py 384 B

123456789101112131415161718
  1. from pathlib import Path
  2. from PySide6.QtWidgets import (
  3. QTreeWidget,
  4. QWidget,
  5. )
  6. from ..fsbrowser import GooeyFilesystemBrowser
  7. from ..dataladcmd_exec import GooeyDataladCmdExec
  8. def test_GooeyFilesystemBrowser():
  9. class FakeApp(QWidget):
  10. _cmdexec = GooeyDataladCmdExec()
  11. fsb = GooeyFilesystemBrowser(FakeApp(), QTreeWidget())
  12. fsb.set_root(Path.cwd())