-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* sort error
- Loading branch information
Showing
5 changed files
with
35 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
"""_version""" | ||
__version__ = "0.0.2a" | ||
__version__ = "0.0.2a1" |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "csv2http" | ||
version = "0.0.2a" | ||
version = "0.0.2a1" | ||
description = "Make http requests based on a CSV input file" | ||
authors = ["Gabriel Gore <[email protected]>"] | ||
license = "MIT License" | ||
|
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
|
||
def test_version(): | ||
assert __version__ == "0.0.2a" | ||
assert __version__ == "0.0.2a1" |
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,27 @@ | ||
import httpx | ||
import pytest | ||
from respx import MockResponse | ||
|
||
from csv2http import utils | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"responses", | ||
[ | ||
[ | ||
MockResponse(200), | ||
MockResponse(201), | ||
httpx.ConnectTimeout("Ooops"), | ||
MockResponse(201), | ||
httpx.ConnectError("Oh no"), | ||
] | ||
], | ||
) | ||
def test_summarize_responses(responses): | ||
summary = utils.summarize_responses(responses) | ||
print(summary) | ||
assert summary | ||
|
||
|
||
if __name__ == "__main__": | ||
pytest.main(["-vv"]) |