Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logo to docs #128

Merged
merged 2 commits into from
Jan 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/img/respx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 9 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# RESPX
<p align="center" style="margin: 0 0 10px">
<img width="350" height="208" src="img/respx.png" alt="RESPX">
</p>

<h1 align="center" style="font-size: 3rem; margin: -15px 0">
RESPX
</h1>

---

Mock [HTTPX](https://www.python-httpx.org/) with awesome request patterns and response side effects.

Expand All @@ -7,7 +15,6 @@ Mock [HTTPX](https://www.python-httpx.org/) with awesome request patterns and re
[![PyPi Version](https://img.shields.io/pypi/v/respx.svg)](https://pypi.org/project/respx/)
[![Python Versions](https://img.shields.io/pypi/pyversions/respx.svg)](https://pypi.org/project/respx/)

---

## QuickStart

Expand Down
2 changes: 1 addition & 1 deletion respx/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(
http_version: Optional[str] = None,
**kwargs: Any,
) -> None:
if callable(content) or isinstance(content, (dict, Exception)): # type: ignore
if callable(content) or isinstance(content, (dict, Exception)):
raise ValueError(
f"MockResponse content can only be str, bytes or byte stream"
f"got {content!r}. Please use json=... or side effects."
Expand Down