Skip to content

Commit 51e4585

Browse files
committed
tests: add tests for locations, more assertions for pagination, html output
1 parent b3ef1fd commit 51e4585

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ classifiers = [
2828
"Programming Language :: Python :: 3.11",
2929
"Programming Language :: Python :: 3.12",
3030
"Programming Language :: Python :: 3.13",
31+
"Programming Language :: Python :: 3.14",
3132
"Programming Language :: Python :: Implementation :: CPython",
3233
"Natural Language :: English",
3334
"Topic :: Utilities",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Example: google_light search engine
2+
import pytest
3+
import os
4+
import serpapi
5+
6+
def test_search_google_light(client):
7+
data = client.search({
8+
'engine': 'google_light',
9+
'q': 'coffee',
10+
})
11+
assert data.get('error') is None
12+
assert data['organic_results']

0 commit comments

Comments
 (0)