Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for container routes #475

Merged
merged 8 commits into from
Jul 29, 2024
Merged

Conversation

rossgray
Copy link
Member

@rossgray rossgray commented Jul 26, 2024

Pull request outline

Add some tests for pipeline container routes, which are currently untested.

In order to get the tests working, I added a lifespan event for starting the execution handler loop: https://github.com/mystic-ai/pipeline/pull/475/files#diff-56467ebb52b06ad6784e7b2347f04e2947276d518f0b57f3f239ae45db46cbb3R46-R59

(without this, the tests would hang as the coroutine never terminates, as it runs in an infinite loop).

I made the mistake of updating the version of Black we're using for autoformatting and it resulted in quite a few changes.

I also used this opportunity to remove the CLI commands related to environments, which are no longer used in V4 (these were also failing Black checks so thought it was best to remove them entirely).

I haven't

Checklist:

  • Tests written
  • Version bumped

@rossgray rossgray force-pushed the add-tests-for-container-routes branch from fdb855d to 9468f49 Compare July 26, 2024 10:53
@rossgray rossgray force-pushed the add-tests-for-container-routes branch from 4b8ea10 to 63d0a37 Compare July 26, 2024 11:05
Copy link
Member

@plutopulp plutopulp left a comment

Choose a reason for hiding this comment

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

LGTM

@rossgray rossgray merged commit fbf7f33 into main Jul 29, 2024
5 checks passed
@rossgray rossgray deleted the add-tests-for-container-routes branch July 29, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants