update unit tests

This commit is contained in:
Mike Fährmann
2017-04-08 11:02:32 +02:00
parent e23e4b1100
commit cf79a47b59
4 changed files with 9 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2015, 2016 Mike Fährmann
# Copyright 2015-2017 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -22,6 +22,7 @@ def request_func(self, *args):
response = self.session.get(*args)
if response.status_code != 200:
_cookiecache.invalidate(self.root)
self.log.debug(response.text)
self.log.info("Solving Cloudflare challenge")
response = solve_challenge(self.session, response)
_cookiecache(self.root, self.session.cookies)