forked from cloudflare-api/python-cloudflare-v4
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'requests_timeouts_and_retries' of https://github.com/dk…
…oston/python-cloudflare into dkoston-requests_timeouts_and_retries Pull Request 173 from dkoston - requests_timeouts_and_retries
- Loading branch information
Showing
8 changed files
with
136 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ future | |
pyyaml | ||
jsonlines | ||
beautifulsoup4 | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,10 @@ | |
# | ||
#[upload] | ||
# | ||
[options.extras_require] | ||
test = | ||
pytest | ||
|
||
[tool:pytest] | ||
testpaths = | ||
tests |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import os | ||
import sys | ||
sys.path.insert(0, os.path.abspath('..')) | ||
|
||
import CloudFlare | ||
|
||
class TestCloudflare: | ||
def test_creating_default_client(self): | ||
cf = CloudFlare.CloudFlare() | ||
assert isinstance(cf, CloudFlare.CloudFlare) | ||
|
||
|
||
def test_with_global_request_timeout(self): | ||
cf = CloudFlare.CloudFlare({'global_request_timeout': 10}) | ||
assert isinstance(cf, CloudFlare.CloudFlare) | ||
|
||
def test_with_max_request_retries(self): | ||
cf = CloudFlare.CloudFlare({'max_request_retries': 2}) | ||
assert isinstance(cf, CloudFlare.CloudFlare) |