Skip to content

Conversation

@markbader
Copy link
Contributor

@markbader markbader commented Sep 26, 2024

Description:

  • This PR should remove vcr-py and introduce a proxy server that replays API requests for the tests.

Todos:

Make sure to delete unnecessary points or to check all before merging:

  • Updated Changelog

Fixing tests:

  • Add annotation to local wk instance (e.g. tests/test_annotation.py::test_annotation_from_url)
  • Zarr Streaming doesn't seem to work for local wk instance(e.g. tests/test_annotation.py::test_bounding_box_roundtrip)
  • Remove date-strings from datasets generated within tests (e.g. tests/test_examples.py::test_upload_image_data)
  • Replaying responses for tests/dataset/test_dataset_add_remote_mag_and_layer.py does not work yet.

@markbader markbader self-assigned this Sep 26, 2024
@normanrz normanrz added this to the 2.x milestone Oct 9, 2024
Copy link
Member

@normanrz normanrz left a comment

Choose a reason for hiding this comment

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

Looks already pretty good. Maybe you can comment on the state of the commented-out code. I think some of that could be revived in a follow-up.

"https://webknossos.org/links/93zLg9U9vJ3c_UWp",
"http://localhost:9000/datasets/Organization_X/l4_sample",
"http://localhost:9000/datasets/Organization_X/l4_sample/view",
# "http://localhost:9000/datasets/Organization_X/l4_sample_dev_sharing/view?token=ilDXmfQa2G8e719vb1U9YQ#%7B%22orthogonal%7D",
Copy link
Member

Choose a reason for hiding this comment

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

Would be good to also test sharing links and short links. Can be a followup.

@markbader markbader marked this pull request as ready for review November 28, 2024 17:02
@markbader markbader requested a review from normanrz November 28, 2024 17:04
Copy link
Member

@normanrz normanrz left a comment

Choose a reason for hiding this comment

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

Great. Let's get this merged.

@markbader markbader merged commit 1eee692 into master Dec 3, 2024
34 checks passed
@markbader markbader deleted the introduce-proxay-for-tests branch December 3, 2024 08:27
@normanrz normanrz mentioned this pull request Jan 5, 2025
8 tasks
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