Skip to content

Add a helper function to connect Thing Slots on already-created Things.#344

Open
rwb27 wants to merge 1 commit into
mainfrom
improve-testing
Open

Add a helper function to connect Thing Slots on already-created Things.#344
rwb27 wants to merge 1 commit into
mainfrom
improve-testing

Conversation

@rwb27
Copy link
Copy Markdown
Collaborator

@rwb27 rwb27 commented May 14, 2026

Trying to mock descriptors is painful, but lt.thing_slot is relatively easy to reconnect with a little boilerplate.

This PR adds a helper function so test code can easily connect Things together without a server.

@barecheck
Copy link
Copy Markdown

barecheck Bot commented May 14, 2026

Barecheck - Code coverage report

Total: 96.86%

Your code coverage diff: 0.00% ▴

Uncovered files and lines
FileLines
src/labthings_fastapi/testing.py140, 257

@julianstirling
Copy link
Copy Markdown
Contributor

I love this. Probably against protocol for it to go in before 0.2 is released?

@rwb27
Copy link
Copy Markdown
Collaborator Author

rwb27 commented May 14, 2026

It's clearly only touching code in testing so I'd have no problem squeezing it in.

OFM v3 check is only failing because of api_prefix which will be fixed there soon enough.

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.

2 participants