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

Non-stateful tests #191

Open
k1o0 opened this issue Aug 1, 2019 · 1 comment
Open

Non-stateful tests #191

k1o0 opened this issue Aug 1, 2019 · 1 comment
Assignees

Comments

@k1o0
Copy link
Contributor

k1o0 commented Aug 1, 2019

Related to cortex-lab/alyx-matlab#52, the viewSubjectHistory test should not rely so much on the test database's state. The plan is thus:

  1. For subject ZM_1087 delete all weights and water posts for the first 20 days of the animals water restriction
  2. Post a load of pre-defined weights and water admins for this time period
  3. Check the plots and table against a saved structure

This can only be done once the test databases are made more reliable as it would require quite a few more requests made in quick succession.

It will still be stateful in that it relies on the z-score settings for that lab and also on the mouse's water restriction record, neither of which can be changed via REST endpoint.

@k1o0 k1o0 self-assigned this Sep 16, 2019
@k1o0
Copy link
Contributor Author

k1o0 commented Sep 16, 2019

Another suggestion: add all paths afresh each time to test addRigboxPaths

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

No branches or pull requests

1 participant