Skip to content

Conversation

@tomhamiltonstubber
Copy link
Member

No description provided.


def get_postcode_service() -> PostcodeService:
"""Dependency to get the postcode service from app state."""
from app.main import postcode_service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Starting the server and making the request give this error.
image
image

It seems that PostcodeService is None, and not initialized

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haven't looked into detailed why this is happening but is seem that just changing the line to , fixes the issues

from main import postcode_service

@Pager07
Copy link

Pager07 commented Oct 20, 2025

Testing with correct / incorrect postcodes
image

Testing with empty inputs
image
image

Testing with incorrect types
image

Testing with incorrect auth
image

@Pager07
Copy link

Pager07 commented Oct 21, 2025

lgtm

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.

3 participants