Skip to content

V2 - #258

Merged
DanJezeph15 merged 10 commits into
masterfrom
v2
Sep 29, 2026
Merged

V2#258
DanJezeph15 merged 10 commits into
masterfrom
v2

Conversation

@tomhamiltonstubber

Copy link
Copy Markdown
Member

No description provided.

Comment thread app/api/postcodes.py Outdated

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

Copy link
Copy Markdown

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
Copy Markdown

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

Pager07 commented Oct 20, 2025 •

Copy link
Copy Markdown

Testing with correct / incorrect postcodes
image

Testing with empty inputs
image
image

Testing with incorrect types
image

Testing with incorrect auth
image

@Pager07

Pager07 commented Oct 21, 2025

Copy link
Copy Markdown

lgtm

@DanJezeph15
DanJezeph15 merged commit cbe1f19 into master Sep 29, 2026
1 check passed
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