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

Move tests from nbs_tests/constants to pytest format #305

Open
wants to merge 1 commit into
base: custom-mods-mp
Choose a base branch
from

Conversation

GeorgWa
Copy link
Collaborator

@GeorgWa GeorgWa commented Mar 13, 2025

I need your help moving tests from jupyter notebooks to pytest.
There are already existing pytest tests, use the same pattern.
If you want to run tests, use the alpha conda env.
Do not add new assert statemnts or remove other ones. Copy the tests and adapt them to pytest using fixtures etc..
only move: /Users/georgwallmann/Documents/git/alphabase/nbs_tests/constants

  • Converted tests from Jupyter notebooks to pytest format
  • Added proper fixtures to handle test isolation
  • Added module-level teardown functions to restore global state

- Converted tests from Jupyter notebooks to pytest format
- Added proper fixtures to handle test isolation
- Added module-level teardown functions to restore global state
@jalew188
Copy link
Collaborator

Finally, thank you Georg! And Claude?

@GeorgWa
Copy link
Collaborator Author

GeorgWa commented Mar 13, 2025

This was a test for claude code. There was no manual work involved :D

@mschwoer
Copy link
Contributor

could we point this to main @GeorgWa ?

@mschwoer
Copy link
Contributor

and should we remove the source notebooks? (given that they don't contain any content except those tests)

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