Skip to content

tests: add offline API pytest foundation - #274

Open
tokenledger wants to merge 1 commit into
ndif-team:mainfrom
tokenledger:issue-172-api-unit-tests
Open

tests: add offline API pytest foundation#274
tokenledger wants to merge 1 commit into
ndif-team:mainfrom
tokenledger:issue-172-api-unit-tests

Conversation

@tokenledger

@tokenledger tokenledger commented Aug 9, 2026

Copy link
Copy Markdown

Summary

  • add the required hello-world smoke test
  • add positive and invalid-value coverage for API configuration parsing
  • add pytest src-layout configuration and document the offline unit-test command
  • correct the unit fixture dev-mode variable and prevent object-store startup so the suite stays offline

Existing application and dependency test modules are unchanged.

Validation

  • API unit suite: 8 passed
  • ruff check src/ndif/services/api/tests/unit/test_config.py src/ndif/services/api/tests/unit/test_smoke.py
  • ruff format --check src/ndif/services/api/tests/unit/test_config.py src/ndif/services/api/tests/unit/test_smoke.py
  • git diff --check

Closes #172

@tokenledger
tokenledger force-pushed the issue-172-api-unit-tests branch from 30c10c1 to 5eac5ff Compare August 9, 2026 18:47
@tokenledger
tokenledger force-pushed the issue-172-api-unit-tests branch from 5eac5ff to 4ad21b7 Compare August 9, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set up basic pytest unit tests for API service

1 participant