How lepiseaparin/bank works
This repository provides two kinds of test-facing clients: banking API workflows in two parallel implementations (senior and midle), and browser workflows for a shopping site. In the sampled API code, ApiManager exposes admin and user steps; user steps construct endpoint requests with authentication and expected-response checks. The UI steps wrap page-object actions for login, catalog, basket, and checkout. The tree indicates broader account, deposit, transfer, credit, and repayment workflows; unsampled implementation details and wiring are left implicit.
Main entry points: user_steps.py User workflows · requests API requesters · login_steps.py Login workflows · api_manager.py API manager
Components 24
Senior API
- API manager
src/main/api/senior/classes/api_manager.py - Admin workflows
src/main/api/senior/steps/admin_steps.py - User workflows
src/main/api/senior/steps/user_steps.py - Endpoint catalog
src/main/api/senior/foundation/endpoint.py - Auth request specs
src/main/api/senior/specs/request_specs.py - Request validation
src/main/api/senior/foundation/requesters/validate_crud_requester.py - CRUD requester
src/main/api/senior/foundation/requesters/crud_requester.py - Request models
src/main/api/senior/models - Random model generator
src/main/api/senior/generators/model_generator.py - Response checks
src/main/api/senior/specs/response_specs.py
Midle API
- API requesters
src/main/api/midle/requests - Request and response specs
src/main/api/midle/specs - API models
src/main/api/midle/models
Shopping UI
- Catalog workflows
src/main/ui/steps/catalog_steps.py - Basket workflows
src/main/ui/steps/basket_steps.py - Checkout workflows
src/main/ui/steps/checkout_steps.py - Login workflows
src/main/ui/steps/login_steps.py - Catalog page
src/main/ui/pages/catalog_page.py - Basket page
src/main/ui/pages/basket_page.py - Checkout page
src/main/ui/pages/checkout_page.py - Login page
src/main/ui/pages/login_page.py
Other components
- Banking API
- Browser user
- Shopping site
Connections 22
- API manager → Admin workflows: exposes
- API manager → User workflows: exposes
- User workflows → Endpoint catalog: selects endpoint
- User workflows → Auth request specs: builds auth
- User workflows → Request validation: posts validated
- User workflows → CRUD requester: posts unchecked
- Request validation → CRUD requester: uses
- User workflows → Response checks: checks status
- Random model generator → Request models: creates
- Auth request specs → Banking API: logs in
- API requesters → Banking API: sends requests
- API requesters → Request and response specs: uses
- API requesters → API models: serializes
- Browser user → Login workflows: starts login
- Login workflows → Login page: drives page
- Login workflows → Shopping site: authenticates
- Catalog workflows → Catalog page: drives page
- Catalog workflows → Shopping site: browses and sorts
- Basket workflows → Basket page: drives page
- Basket workflows → Shopping site: updates basket
- Checkout workflows → Checkout page: drives page
- Checkout workflows → Shopping site: submits checkout