Dachary has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311458

Change subject: test: wait for changes to propagate
......................................................................

test: wait for changes to propagate

Retry after a change is made to test.wikidata.org because the API
frontend sometime lag behind a few seconds.

Change-Id: Ib91f229e149b6f507e28abed0b3fad6eac8358aa
Signed-off-by: Loic Dachary <l...@dachary.org>
---
M tests/test_bot.py
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/bots/FLOSSbot 
refs/changes/58/311458/1

diff --git a/tests/test_bot.py b/tests/test_bot.py
index eead047..a4338a3 100644
--- a/tests/test_bot.py
+++ b/tests/test_bot.py
@@ -68,6 +68,10 @@
             assert 1 == len(bot.entities['property'])
             bot.clear_entity_label(property)
             assert 0 == len(bot.entities['property'])
+            for i in range(120):
+                if (bot.lookup_entity(
+                        attr, type='property') is None):
+                    break
             property = bot.__getattribute__(attr)
             assert 1 == len(bot.entities['property'])
 

-- 
To view, visit https://gerrit.wikimedia.org/r/311458
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib91f229e149b6f507e28abed0b3fad6eac8358aa
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/bots/FLOSSbot
Gerrit-Branch: master
Gerrit-Owner: Dachary <l...@dachary.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to