PageRenderTime 41ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/tests/Marathon/Fixtures/default.py

#
Python | 23 lines | 16 code | 7 blank | 0 comment | 0 complexity | ff224dec65c83a0111f758cdee19f1f6 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. from org.gjt.sp.jedit import jEdit
  2. from marathon.playback import *
  3. import os
  4. from java.lang import System
  5. settingsDir = System.getProperty('user.home') + System.getProperty('file.separator') + '.jEditTest'
  6. class Fixture:
  7. def start_application(self):
  8. args = ["-reuseview", "-settings=" + settingsDir]
  9. jEdit.main(args)
  10. def teardown(self):
  11. pass
  12. def setup(self):
  13. self.start_application()
  14. def test_setup(self):
  15. pass
  16. fixture = Fixture()