From 70bee6f8f9de07e030feeb3f297cc515bfa2dfa6 Mon Sep 17 00:00:00 2001
From: Inso <insomniak.fr@gmail.com>
Date: Fri, 22 Jan 2016 08:11:24 +0100
Subject: [PATCH] Fix functional tests
---
.../functional/identities_tab/test_identities_table.py | 6 +++---
src/sakia/tests/functional/wot_tab/test_wot_tab.py | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/sakia/tests/functional/identities_tab/test_identities_table.py b/src/sakia/tests/functional/identities_tab/test_identities_table.py
index 71c5da4c..ff640f13 100644
--- a/src/sakia/tests/functional/identities_tab/test_identities_table.py
+++ b/src/sakia/tests/functional/identities_tab/test_identities_table.py
@@ -90,8 +90,8 @@ class TestIdentitiesTable(unittest.TestCase, QuamashTest):
# requests 1 to 3 are for getting certifiers-of and certified-by
# on john, + a lookup
- QTest.keyClicks(identities_tab.edit_textsearch, "doe")
- QTest.mouseClick(identities_tab.button_search, Qt.LeftButton)
+ QTest.keyClicks(identities_tab.ui.edit_textsearch, "doe")
+ QTest.mouseClick(identities_tab.ui.button_search, Qt.LeftButton)
await asyncio.sleep(2)
req = 8
@@ -100,7 +100,7 @@ class TestIdentitiesTable(unittest.TestCase, QuamashTest):
'/blockchain/memberships/FADxcH5LmXGmGFgdixSes6nWnC4Vb4pRUBYT81zQRhjn')
req += 1
- self.assertEqual(identities_tab.table_identities.model().rowCount(), 1)
+ self.assertEqual(identities_tab.ui.table_identities.model().rowCount(), 1)
await asyncio.sleep(2)
self.lp.call_soon(close_dialog)
diff --git a/src/sakia/tests/functional/wot_tab/test_wot_tab.py b/src/sakia/tests/functional/wot_tab/test_wot_tab.py
index 9f4f3d99..49713080 100644
--- a/src/sakia/tests/functional/wot_tab/test_wot_tab.py
+++ b/src/sakia/tests/functional/wot_tab/test_wot_tab.py
@@ -68,7 +68,7 @@ class TestWotTab(unittest.TestCase, QuamashTest):
await open_widget()
def close_dialog():
- if wot_tab.wiget.isVisible():
+ if wot_tab.widget.isVisible():
wot_tab.widget.close()
future.set_result(True)
--
GitLab