File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ def app(request):
6161@pytest .fixture (scope = "session" )
6262def editor (request ):
6363 global _app , _widget
64- from test import helpers
6564 from pyqode .core import frontend , settings
6665 from pyqode .python .frontend import PyCodeEdit
6766 from pyqode .python .backend import server
Original file line number Diff line number Diff line change 1919from pyqode .core import frontend
2020from pyqode .core .frontend import modes
2121from pyqode .core .frontend import panels
22+ from pyqode .python .frontend import open_file
2223
2324
2425test_dir = dirname (abspath (__file__ ))
@@ -62,7 +63,7 @@ def decorator(func):
6263 def wrapper (editor , * args , ** kwds ):
6364 import logging
6465 logging .critical ('---------------- %s ----------------' % func .__name__ )
65- frontend . open_file (editor , path )
66+ open_file (editor , path )
6667 return func (editor , * args , ** kwds )
6768 return wrapper
6869 return decorator
Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
12"""
23Tests for PyCodeEdit
34"""
@@ -14,3 +15,10 @@ def test_py_code_edit(editor):
1415 assert isinstance (editor , CodeEdit )
1516 assert isinstance (editor , PyCodeEdit )
1617 QTest .qWait (1000 )
18+ editor .use_dark_style ()
19+ QTest .qWait (100 )
20+ editor .use_white_style ()
21+
22+ # for coverage
23+ editor .use_dark_style (use = False )
24+ editor .use_white_style (use = False )
You can’t perform that action at this time.
0 commit comments