update unit tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user