# msterlingdk/unit_testing_guide architecture

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

- Interactive diagram: https://gitdiagram.com/msterlingdk/unit_testing_guide
- Repository: https://github.com/msterlingdk/unit_testing_guide

## Overview

This is a small educational backend example, not a full production service. Its two runtime capabilities are independent: calculate VAT locally, or fetch a user from an example HTTP API. The README illustrates calling both from application code. The API interaction is visible in the sampled service; no broader request-routing or persistence layer is shown. Tests and test infrastructure are excluded from this runtime view.

Main entry points: [`app/services.py`](https://github.com/msterlingdk/unit_testing_guide/blob/main/app/services.py) (User lookup), [`app/utils.py`](https://github.com/msterlingdk/unit_testing_guide/blob/main/app/utils.py) (VAT calculation)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("Application caller"))
node_vat["VAT calculation<br/>[utils.py]"]
node_user_service["User lookup<br/>[services.py]"]
node_example_api["Example users API"]

node_caller -->|"calculates VAT"| node_vat
node_caller -->|"requests user"| node_user_service
node_user_service -->|"GET user"| node_example_api
node_example_api -->|"returns JSON"| node_user_service

click node_vat "https://github.com/msterlingdk/unit_testing_guide/blob/main/app/utils.py"
click node_user_service "https://github.com/msterlingdk/unit_testing_guide/blob/main/app/services.py"

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_caller toneIndigo
class node_vat toneTeal
class node_user_service,node_example_api toneBlue
```

## Components

### Other components

- **Application caller**
- [VAT calculation](https://github.com/msterlingdk/unit_testing_guide/blob/main/app/utils.py): `app/utils.py`
- [User lookup](https://github.com/msterlingdk/unit_testing_guide/blob/main/app/services.py): `app/services.py`
- **Example users API**

## Connections

- Application caller → VAT calculation: calculates VAT (evidence: `README.md`)
- Application caller → User lookup: requests user (evidence: `README.md`)
- User lookup → Example users API: GET user (evidence: `app/services.py`)
- Example users API → User lookup: returns JSON (evidence: `app/services.py`)
