# thebash4/qa_practise_repo architecture

> Architecture diagram of the GitHub repository thebash4/qa_practise_repo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/thebash4/qa_practise_repo
- Repository: https://github.com/thebash4/qa_practise_repo

## Overview

This repository is a QA test suite for evaluation APIs and a browser-based evaluation interface. Its main workflow is to start or inspect evaluation runs, wait for completion, and validate returned results; the UI page object supports browser interaction. The excerpts show the API session and polling utilities, result-processing helpers, and page object. Test implementations and several fixture modules are unsampled, so their specific call relationships are not asserted.

Main entry points: [`api_utils/polling.py`](https://github.com/thebash4/qa_practise_repo/blob/main/api_utils/polling.py) (Python run polling), [`utils/evaluation-polling.ts`](https://github.com/thebash4/qa_practise_repo/blob/main/utils/evaluation-polling.ts) (TypeScript run polling), [`api_tests/test_evaluations.py`](https://github.com/thebash4/qa_practise_repo/blob/main/api_tests/test_evaluations.py) (API test suite), [`api_tests/conftest.py`](https://github.com/thebash4/qa_practise_repo/blob/main/api_tests/conftest.py) (API session fixture)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API test support"]
  node_api_tests["API test suite"]
  node_api_fixture["API session fixture<br/>[conftest.py]"]
  node_api_client["Logging API client<br/>[api_client.py]"]
  node_py_polling["Python run polling<br/>[polling.py]"]
end

subgraph group_evaluation["Evaluation validation"]
  node_ts_polling["TypeScript run polling"]
  node_results["Result processing"]
  node_expectations["DATA-104 expectations"]
  node_test_data["Evaluation test data<br/>[evaluation-data.ts]"]
end

subgraph group_browser["Browser testing"]
  node_ui_tests["Browser test suite<br/>[first-test.spec.ts]"]
  node_page_object["Evaluation page object<br/>[evaluation-page.ts]"]
end

node_tester(("Test runner"))
node_evaluation_api["Evaluation API"]
node_web_app["Evaluation web app"]

node_api_fixture -->|"creates session"| node_api_client
node_py_polling -->|"uses quiet logger"| node_api_client
node_py_polling -->|"polls run"| node_evaluation_api
node_ts_polling -->|"polls run"| node_evaluation_api
node_ts_polling -->|"uses run types"| node_results
node_page_object -->|"navigates and clicks"| node_web_app
node_tester -.->|"runs"| node_api_tests
node_tester -.->|"runs"| node_ui_tests
node_api_tests -.->|"uses fixture"| node_api_fixture
node_ui_tests -.->|"uses page object"| node_page_object

click node_api_tests "https://github.com/thebash4/qa_practise_repo/blob/main/api_tests/test_evaluations.py"
click node_api_fixture "https://github.com/thebash4/qa_practise_repo/blob/main/api_tests/conftest.py"
click node_api_client "https://github.com/thebash4/qa_practise_repo/blob/main/api_utils/api_client.py"
click node_py_polling "https://github.com/thebash4/qa_practise_repo/blob/main/api_utils/polling.py"
click node_ts_polling "https://github.com/thebash4/qa_practise_repo/blob/main/utils/evaluation-polling.ts"
click node_results "https://github.com/thebash4/qa_practise_repo/blob/main/utils/evaluation-results.ts"
click node_expectations "https://github.com/thebash4/qa_practise_repo/blob/main/test-data/data-104-expectations.ts"
click node_test_data "https://github.com/thebash4/qa_practise_repo/blob/main/test-data/evaluation-data.ts"
click node_ui_tests "https://github.com/thebash4/qa_practise_repo/blob/main/tests/first-test.spec.ts"
click node_page_object "https://github.com/thebash4/qa_practise_repo/blob/main/pages/evaluation-page.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_api_tests,node_api_fixture,node_api_client,node_py_polling toneBlue
class node_ts_polling,node_results,node_expectations,node_test_data toneAmber
class node_ui_tests,node_page_object,node_evaluation_api toneMint
class node_tester,node_web_app toneIndigo
```

## Components

### API test support

- [API test suite](https://github.com/thebash4/qa_practise_repo/blob/main/api_tests/test_evaluations.py): `api_tests/test_evaluations.py`
- [API session fixture](https://github.com/thebash4/qa_practise_repo/blob/main/api_tests/conftest.py): `api_tests/conftest.py`
- [Logging API client](https://github.com/thebash4/qa_practise_repo/blob/main/api_utils/api_client.py): `api_utils/api_client.py`
- [Python run polling](https://github.com/thebash4/qa_practise_repo/blob/main/api_utils/polling.py): `api_utils/polling.py`

### Evaluation validation

- [TypeScript run polling](https://github.com/thebash4/qa_practise_repo/blob/main/utils/evaluation-polling.ts): `utils/evaluation-polling.ts`
- [Result processing](https://github.com/thebash4/qa_practise_repo/blob/main/utils/evaluation-results.ts): `utils/evaluation-results.ts`
- [DATA-104 expectations](https://github.com/thebash4/qa_practise_repo/blob/main/test-data/data-104-expectations.ts): `test-data/data-104-expectations.ts`
- [Evaluation test data](https://github.com/thebash4/qa_practise_repo/blob/main/test-data/evaluation-data.ts): `test-data/evaluation-data.ts`

### Browser testing

- [Browser test suite](https://github.com/thebash4/qa_practise_repo/blob/main/tests/first-test.spec.ts): `tests/first-test.spec.ts`
- [Evaluation page object](https://github.com/thebash4/qa_practise_repo/blob/main/pages/evaluation-page.ts): `pages/evaluation-page.ts`

### Other components

- **Test runner**
- **Evaluation API**
- **Evaluation web app**

## Connections

- API session fixture → Logging API client: creates session (evidence: `api_tests/conftest.py`)
- Python run polling → Logging API client: uses quiet logger (evidence: `api_utils/polling.py`)
- Python run polling → Evaluation API: polls run (evidence: `api_utils/polling.py`)
- TypeScript run polling → Evaluation API: polls run (evidence: `utils/evaluation-polling.ts`)
- TypeScript run polling → Result processing: uses run types (evidence: `utils/evaluation-polling.ts`)
- Evaluation page object → Evaluation web app: navigates and clicks (evidence: `pages/evaluation-page.ts`)
- Test runner → API test suite: runs
- Test runner → Browser test suite: runs
- API test suite → API session fixture: uses fixture
- Browser test suite → Evaluation page object: uses page object
