Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: kz-scoring-api
description: |
Synchronous REST facade for Beeline-initiator PKB lookups via vaultee-pipelines.
type: application
version: 0.1.2
appVersion: "0.1.2"
version: 0.1.3
appVersion: "0.1.3"
maintainers:
- name: Aggregion
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "kz-scoring-api"
version = "0.1.2"
version = "0.1.3"
description = "Synchronous REST facade for Beeline-initiator PKB lookups via vaultee-pipelines."
requires-python = ">=3.11"
dependencies = [
Expand Down
7 changes: 6 additions & 1 deletion src/kz_scoring_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
__version__ = "0.1.1"
from importlib.metadata import PackageNotFoundError, version

try:
__version__ = version("kz-scoring-api")
except PackageNotFoundError:
__version__ = "0.0.0+unknown"
12 changes: 12 additions & 0 deletions tests/test_endpoints.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import tomllib
from pathlib import Path

from kz_scoring_api.hashing import compute_row_id_full, compute_row_id_iin
from kz_scoring_api.pipeline_client import (
PipelineTimeoutError,
Expand All @@ -11,6 +14,15 @@ def test_healthz(test_client):
assert r.json()["status"] == "ok"


def test_healthz_version_matches_pyproject(test_client):
pyproject = tomllib.loads(
(Path(__file__).resolve().parent.parent / "pyproject.toml").read_text()
)
r = test_client.get("/healthz")
assert r.status_code == 200
assert r.json()["version"] == pyproject["project"]["version"]


def test_single_iin_only_200(test_client, settings, fake_pipelines, fake_secrets):
row_id = compute_row_id_iin(
fake_secrets.value, "801217301434", settings.iin_salt
Expand Down
Loading