Skip to content

tests: query_colabfold_msa_server#145

Open
jandom wants to merge 22 commits intomainfrom
jandom/2026-02/tests/query_colabfold_msa_server
Open

tests: query_colabfold_msa_server#145
jandom wants to merge 22 commits intomainfrom
jandom/2026-02/tests/query_colabfold_msa_server

Conversation

@jandom
Copy link
Copy Markdown
Collaborator

@jandom jandom commented Mar 23, 2026

Summary

Quick cleanup of this pretty crucial method and a test

Changes

Related Issues

Testing

Other Notes

@jandom jandom self-assigned this Mar 23, 2026
@jandom jandom added the safe-to-test Internal only label used to indicate PRs that are ready for automated CI testing. label Mar 23, 2026
class TestQueryColabfoldMsaServer:
"""Functional test — hits real ColabFold API (~30-60s)."""

def test_barnase_with_templates(self, tmp_path):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I bet we could reuse the ColabFold mmseqs mock itself :
Mock definition: https://github.com/sokrypton/ColabFold/blob/main/tests/mock.py#L109
Usage: https://github.com/sokrypton/ColabFold/blob/9712f2ff262d3977d571919317e06cc96c29cd95/tests/test_msa.py#L7

That would probably be the cleanest way to handle it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We would have to vendor it though :/ Not ideal – ColabFold is a very bulk dep to add, i'd rather avoid it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We've also modified their code a fair bit, i think

Copy link
Copy Markdown
Collaborator Author

@jandom jandom Mar 31, 2026

Choose a reason for hiding this comment

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

Hey, there @jnwei let me re-vive this PR – I think we can do the pytest-VCR approach to these tests

Ah, script that – we need the full colabfold job to complete. They appear to be using some sort of caching, subsequent calls are instant basically

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Just reviewed the mock code you provided, yeah let's vendor that – it'll be the easiest.

Base automatically changed from jandom/2026-02/fix/chain-template-alignments-auth-labelling to main March 26, 2026 11:18
@jandom jandom marked this pull request as ready for review March 26, 2026 11:20
@jandom jandom requested a review from jnwei March 31, 2026 12:55
@jandom jandom added safe-to-test Internal only label used to indicate PRs that are ready for automated CI testing. and removed safe-to-test Internal only label used to indicate PRs that are ready for automated CI testing. labels Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe-to-test Internal only label used to indicate PRs that are ready for automated CI testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants