https://github.com/atheeralzhrani/pytest-bdd-rest_api_test
https://github.com/atheeralzhrani/pytest-bdd-rest_api_test
api-rest pytest-bdd test-automation
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/atheeralzhrani/pytest-bdd-rest_api_test
- Owner: AtheerAlzhrani
- Created: 2025-07-04T18:34:43.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-07-05T17:45:52.000Z (6 months ago)
- Last Synced: 2025-07-05T18:56:49.379Z (6 months ago)
- Topics: api-rest, pytest-bdd, test-automation
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DuckDuckGo API BDD Tests
This project uses **pytest-bdd** to test the [DuckDuckGo Instant Answer API](https://api.duckduckgo.com/) with behavior-driven development (BDD).
## 📁 Structure
- `features/` – Gherkin scenarios describing expected API behavior
- `tests/` – Step definitions that implement the scenarios
## ✅ What It Tests
Two scenario outlines verify that the API returns valid results for:
- `panda`, `python`, `platypus`
- `peach`, `pineapple`, `papaya`
Each test checks:
- HTTP status code is `200` (or `202` if acceptable)
- Response contains the search phrase in the heading