Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
ebfce9e9
Commit
ebfce9e9
authored
9 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Fix subsequent broken tests
parent
df8525c4
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sakia/tests/functional/wot_tab/test_wot_tab.py
+4
-4
4 additions, 4 deletions
src/sakia/tests/functional/wot_tab/test_wot_tab.py
src/sakia/tests/unit/gui/test_context_menu.py
+2
-3
2 additions, 3 deletions
src/sakia/tests/unit/gui/test_context_menu.py
with
6 additions
and
7 deletions
src/sakia/tests/functional/wot_tab/test_wot_tab.py
+
4
−
4
View file @
ebfce9e9
...
@@ -58,7 +58,7 @@ class TestWotTab(unittest.TestCase, QuamashTest):
...
@@ -58,7 +58,7 @@ class TestWotTab(unittest.TestCase, QuamashTest):
future
=
asyncio
.
Future
()
future
=
asyncio
.
Future
()
def
open_widget
():
def
open_widget
():
wot_tab
.
show
()
wot_tab
.
widget
.
show
()
return
future
return
future
async
def
async_open_widget
():
async
def
async_open_widget
():
...
@@ -68,13 +68,13 @@ class TestWotTab(unittest.TestCase, QuamashTest):
...
@@ -68,13 +68,13 @@ class TestWotTab(unittest.TestCase, QuamashTest):
await
open_widget
()
await
open_widget
()
def
close_dialog
():
def
close_dialog
():
if
wot_tab
.
isVisible
():
if
wot_tab
.
wiget
.
isVisible
():
wot_tab
.
close
()
wot_tab
.
widget
.
close
()
future
.
set_result
(
True
)
future
.
set_result
(
True
)
async
def
exec_test
():
async
def
exec_test
():
await
asyncio
.
sleep
(
1
)
await
asyncio
.
sleep
(
1
)
self
.
assertTrue
(
wot_tab
.
isVisible
())
self
.
assertTrue
(
wot_tab
.
widget
.
isVisible
())
self
.
lp
.
call_soon
(
close_dialog
)
self
.
lp
.
call_soon
(
close_dialog
)
asyncio
.
ensure_future
(
exec_test
())
asyncio
.
ensure_future
(
exec_test
())
...
...
This diff is collapsed.
Click to expand it.
src/sakia/tests/unit/gui/test_context_menu.py
+
2
−
3
View file @
ebfce9e9
import
unittest
import
unittest
from
unittest.mock
import
patch
,
MagicMock
,
Mock
from
unittest.mock
import
patch
,
MagicMock
,
Mock
from
asynctest.mock
import
CoroutineMock
from
asynctest.mock
import
CoroutineMock
from
asynctest.mock
import
MagicMock
as
AsyncMagicMock
from
PyQt5.QtCore
import
QLocale
from
PyQt5.QtCore
import
QLocale
,
pyqtSignal
from
sakia.tests
import
QuamashTest
from
sakia.tests
import
QuamashTest
from
sakia.tests.mocks.bma
import
nice_blockchain
from
sakia.tests.mocks.bma
import
nice_blockchain
from
sakia.gui.widgets
import
ContextMenu
from
sakia.gui.widgets
.context_menu
import
ContextMenu
class
TestContextMenu
(
unittest
.
TestCase
,
QuamashTest
):
class
TestContextMenu
(
unittest
.
TestCase
,
QuamashTest
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment