@@ -9,7 +9,7 @@ This project provides a robust framework for testing REST. It follows Python bes
99### Key Features
1010
1111- ** API Testing** : Client abstraction for REST API endpoints (GET, POST, PUT, DELETE)
12- - ** Test Fixtures** : Reusable Pytest fixtures for API client and database connections
12+ - ** Test Fixtures** : Reusable Pytest fixtures for API client
1313- ** Type Hints** : Full type annotations for better IDE support and code clarity
1414- ** Error Handling** : Comprehensive error handling and logging throughout the framework
1515
@@ -18,25 +18,31 @@ This project provides a robust framework for testing REST. It follows Python bes
1818### Project Structure
1919
2020```
21- pytest-api-framework/
22- ├── api-framework/
21+ API-BATCH-TEST/
22+ ├── api-batch-test/
23+ │ ├── config/ # Configuration files
2324│ ├── src/
24- │ │ ├── __init__.py
25+ │ │ ├── helpers/ # Helper functions for tests
26+ │ │ ├── schemas/ # JSON schemas for response validation
2527│ │ ├── api_client.py # REST API client abstraction
26- │ │ ├ ── api_endpoints.py # API endpoint definitions
27- │ │ └── database.py # PostgreSQL connection management
28+ │ │ └ ── api_endpoints.py # API endpoint definitions
29+ │ │
2830│ ├── tests/
29- │ │ ├── conftest.py # Pytest fixtures and configuration
30- │ │ ├── test_db_connection.py # Database tests
31- │ │ ├── test_activities.py # API endpoint tests
32- │ │ └── data/
33- │ │ └── activities.py # Test data definitions
34- │ ├── reports/ # Generated test reports
35- │ ├── requirements.txt # Python dependencies
36- │ └── pytest.ini # Pytest configuration
37- ├── docker/
38- │ ├── docker-compose.yml # PostgreSQL container setup
39- │ └── init.sql # Database initialization script
31+ │ │ ├── cassettes/ # VCR.py cassettes for recorded HTTP interactions
32+ │ │ ├── data/ # Test data files
33+ │ │ ├── test-contract/ # Contract tests
34+ │ │ ├── test-negative/ # Negative tests
35+ │ │ ├── test-pagination/ # Pagination tests
36+ │ │ ├── test-smoke/ # Smoke tests
37+ │ │ └── conftest.py # Pytest fixtures and configuration
38+ │ │
39+ │ ├── pyproject.toml # Project metadata and dependencies
40+ │ ├── pyvenv.cfg # Virtual environment configuration
41+ │ └── requirements.txt # Python dependencies
42+ │
43+ ├── reports/ # Test reports
44+ ├── mypy.ini # Mypy configuration
45+ ├── pytest.ini # Pytest configuration
4046└── README.md
4147```
4248
0 commit comments