Skip to content

Michal/api tests#156

Open
elo-siema wants to merge 17 commits intomainfrom
michal/api-tests
Open

Michal/api tests#156
elo-siema wants to merge 17 commits intomainfrom
michal/api-tests

Conversation

@elo-siema
Copy link
Copy Markdown
Collaborator

@elo-siema elo-siema commented Oct 3, 2023

Morpheus API tests. All endpoints covered.

2 of the tests fail at the moment, both for the same reason:

  • test_upload_multiple_files_to_s3
    • reason="Folder missing. Need to specify 'collections' or 'avatars'"
  • test_get_user_images

These endpoints probably have to be fixed.

And one test has an unhandled exception which propagates to test code, due to how pytest + htmx starts a FastAPI asgi app:

  • test_get_artworks_by_collection_id_not_found

I marked that one as xfail.

Also I added moto to mock calls to S3.

TODO issue, please read:

Due to it being quite complicated to mock diffusers, I settled on using a minimal model from huggingface.
It unfortunately gets downloaded.
I considered including it into the repository, but the code does not have any LICENSE. I raised an issue with HF for this.
Alternatively we can download and cache it in CI, but not include in the repo. Would that be an acceptable approach?

@elo-siema elo-siema requested a review from juanArias8 October 4, 2023 00:35
@elo-siema elo-siema marked this pull request as ready for review October 4, 2023 00:35
elo-siema and others added 2 commits October 4, 2023 00:36
* add folder param to upload_multiple_files_to_s3 and get_user_images
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