MoleculeResolver / molecule-resolver

Find the structures for molecules
MIT License
6 stars 1 forks source link

Implement basic integration tests and continuous integration #4

Open marcosfelt opened 1 year ago

marcosfelt commented 1 year ago

Set up Github actions and ~use pytest mock to mock _resilient_request~ and add ~units~ tests for the following services.

I need to note down for each service which examples are failing and add a json field with services that are expected to fail. Then, I could check if the behavior is doing what we want. Going to do the unit tests in a separate issue.

simonmb commented 1 year ago

To mock the request maybe the best would be to run the moleculeresolver on a set of molecules and save the status code and the content of the request let's say for example to a json file used in the mock? Do you need a list of identifiers/modes to do this?

marcosfelt commented 1 year ago

That's a good idea - maybe we could have a script that does this. Would you be able to write that?

simonmb commented 1 year ago

Yes I'll send you a json with identifiers and modes via email.