Beispiel #1
0

if __name__ == '__main__':

    count = 0
    inserted = 0
    duplicated = 0
    progress_index = 1
    n_apps = db.apps.count()

    logger.info("Progress 0 %  of {} apps".format(n_apps))

    for app in db.apps.find().sort("_id", pymongo.DESCENDING):
        count += 1
        # Wait a random time
        wait(logger)

        logger.debug("Getting updates for {}".format(app['appid']))
        try:
            u, v, p = get_update_notes(app['appid'])
        except IndexError:
            logger.critical("Updates for {} not found".format(app['appid']))
            continue

        try:
            db.updates.save({
                "appid":
                app['appid'],
                "versionCode":
                app['details']['appDetails']['versionCode'],
                "uploaded":
Beispiel #2
0
    def test_wait5(self):
        """Test wait function."""

        self.assertEqual(helpers.wait(73), True)
Beispiel #3
0
 def match_to_login_URI(self):
     wait(self.driver, expected_conditions.url_matches(self.LOGIN_URI))