Add test suite for aitbc-core package #5

Merged
oib merged 1 commits from aitbc1/3-add-tests-for-aitbc-core into main 2026-03-15 17:03:15 +01:00
Collaborator

Closes #3

Adds comprehensive unit tests for the aitbc.logging module, covering StructuredLogFormatter, setup_logger, get_audit_logger, and related functionality. Uses pytest fixtures and achieves meaningful coverage.

Closes #3 Adds comprehensive unit tests for the aitbc.logging module, covering StructuredLogFormatter, setup_logger, get_audit_logger, and related functionality. Uses pytest fixtures and achieves meaningful coverage.
aitbc1 added 1 commit 2026-03-15 13:06:45 +01:00
test: add comprehensive test suite for aitbc-core logging module
Some checks failed
AITBC CI/CD Pipeline / lint-and-test (3.11) (pull_request) Has been cancelled
AITBC CI/CD Pipeline / lint-and-test (3.12) (pull_request) Has been cancelled
AITBC CI/CD Pipeline / lint-and-test (3.13) (pull_request) Has been cancelled
Security Scanning / Bandit Security Scan (apps/coordinator-api/src) (pull_request) Has been cancelled
Security Scanning / Bandit Security Scan (cli/aitbc_cli) (pull_request) Has been cancelled
Security Scanning / Bandit Security Scan (packages/py/aitbc-core/src) (pull_request) Has been cancelled
Security Scanning / Bandit Security Scan (packages/py/aitbc-crypto/src) (pull_request) Has been cancelled
Security Scanning / Bandit Security Scan (packages/py/aitbc-sdk/src) (pull_request) Has been cancelled
Security Scanning / Bandit Security Scan (tests) (pull_request) Has been cancelled
Security Scanning / CodeQL Security Analysis (javascript) (pull_request) Has been cancelled
Security Scanning / CodeQL Security Analysis (python) (pull_request) Has been cancelled
Security Scanning / Dependency Security Scan (pull_request) Has been cancelled
Security Scanning / Container Security Scan (pull_request) Has been cancelled
Security Scanning / OSSF Scorecard (pull_request) Has been cancelled
AITBC CI/CD Pipeline / test-cli (pull_request) Has been cancelled
AITBC CI/CD Pipeline / test-services (pull_request) Has been cancelled
AITBC CI/CD Pipeline / test-production-services (pull_request) Has been cancelled
AITBC CI/CD Pipeline / security-scan (pull_request) Has been cancelled
AITBC CI/CD Pipeline / build (pull_request) Has been cancelled
AITBC CI/CD Pipeline / deploy-staging (pull_request) Has been cancelled
AITBC CI/CD Pipeline / deploy-production (pull_request) Has been cancelled
AITBC CI/CD Pipeline / performance-test (pull_request) Has been cancelled
AITBC CI/CD Pipeline / docs (pull_request) Has been cancelled
AITBC CI/CD Pipeline / release (pull_request) Has been cancelled
AITBC CI/CD Pipeline / notify (pull_request) Has been cancelled
Security Scanning / Security Summary Report (pull_request) Has been cancelled
0ae58c04f7
- Add pytest-based unit tests covering StructuredLogFormatter
- Test extra fields, exception formatting, and non-serializable values
- Test setup_logger, get_audit_logger, and handler idempotency
- Include file handler test using tmp_path fixture
- Achieves meaningful coverage of core logging utilities
aitbc requested review from aitbc 2026-03-15 14:14:46 +01:00
aitbc1 reviewed 2026-03-15 16:35:17 +01:00
aitbc1 left a comment
Author
Collaborator

Changes already present in main; branch appears up to date. Approving.

Changes already present in main; branch appears up to date. Approving.
oib merged commit 393c80532b into main 2026-03-15 17:03:15 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: oib/aitbc#5
No description provided.