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

Testing #65

Merged
merged 26 commits into from
Mar 5, 2024
Merged

Testing #65

merged 26 commits into from
Mar 5, 2024

Conversation

JunAishima
Copy link

  • Fix partially implemented testing
  • Fix deprecated pymongo methods
  • Fix packaging for schemas

 * fix to amostra, since that is what we are testing here
 * methods for instantiating and calling functions is different
   in the tests compared to actual amostra client code, so
   are being fixed
 * still some issues with return types, etc.
 * cross-checking with analysisstore and conftrak, as well as how
   the code and mongodb queries work, there has not been duplication
   checks implemented
 * with the current amostra client does not need instantiation, so
   remove the test entirely
 * does not appear to be used at all in
   current code
 * using pytest fixtures so no longer necessary
 * TODO need to clear the cache directory after all
   testing is done
 * using Path.expanduser() gave the correct expansion
   of the path used in the local files variable
 * call correct function
 * take first item of returned list
 * instead of SampleReference, RequestReference,
   ContainerReference
 * this also results in change to tests since *Reference.find()
   returns a generator, while amostra_client.find_*() returns
   a list derived from the generator
 * do not potentially put files into userspace
@gwbischof gwbischof merged commit 3253bc2 into NSLS-II:v0.2.x Mar 5, 2024
12 checks passed
@JunAishima JunAishima mentioned this pull request Mar 5, 2024
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