Skip to content
Draft
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ client = Browserbase(
session = client.sessions.create(
project_id=BROWSERBASE_PROJECT_ID,
)
```


def run(playwright: Playwright) -> None:
Expand Down Expand Up @@ -301,6 +300,7 @@ By default requests time out after 1 minute. You can configure this with a `time
which accepts a float or an [`httpx.Timeout`](https://www.python-httpx.org/advanced/timeouts/#fine-tuning-the-configuration) object:

```python
import httpx
from browserbase import Browserbase

# Configure the default for all requests:
Expand Down
7 changes: 7 additions & 0 deletions tests/test_readme.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import re
from pathlib import Path


def test_readme_code_fences_are_balanced() -> None:
fences = re.findall(r"^```(.*)$", (Path(__file__).parent.parent / "README.md").read_text(), re.M)
assert fences[1::2] == [""] * (len(fences) // 2) and all(fences[::2])
Loading