Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
Improve testing (#8)
Browse files Browse the repository at this point in the history
* Add additional test

* Bump version
  • Loading branch information
vsakkas authored Nov 7, 2023
1 parent 5de22a6 commit 4308b21
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# <img src="https://raw.githubusercontent.com/vsakkas/bard.py/master/images/logo.svg?token=GHSAT0AAAAAAB7MEK465TODCKRPHN3YQY54ZKGUN4Q" width="24px" /> Bard.py
# <img src="https://raw.githubusercontent.com/vsakkas/bard.py/master/images/logo.svg?token=GHSAT0AAAAAAB7MEK465TODCKRPHN3YQY54ZKGUN4Q" width="28px" /> Bard.py

[![Latest Release](https://img.shields.io/github/v/release/vsakkas/bard.py.svg)](https://github.com/vsakkas/bard.py/releases/tag/v0.2.0)
[![Latest Release](https://img.shields.io/github/v/release/vsakkas/bard.py.svg)](https://github.com/vsakkas/bard.py/releases/tag/v0.2.1)
[![Python](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
[![MIT License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/vsakkas/bard.py/blob/master/LICENSE)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bard-py"
version = "0.2.0"
version = "0.2.1"
description = "Python Client for Bard."
authors = ["vsakkas <[email protected]>"]
license = "MIT"
Expand Down
8 changes: 8 additions & 0 deletions tests/test_ask.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@
async def test_ask() -> None:
async with BardClient() as bard:
_ = await bard.ask("Tell me a joke")


@pytest.mark.asyncio
async def test_ask_multiple_prompts() -> None:
async with BardClient() as bard:
_ = await bard.ask("Tell me a joke.")

_ = await bard.ask("Tell me another one.")

0 comments on commit 4308b21

Please sign in to comment.