Open marcosfelt opened 1 year ago
Hey @marcosfelt,
I've started working on this PR. The plan is to create a new test file tests/test_services/test_pubchem.py
where we'll add unit tests for the PubChem
class in pura/services/pubchem.py
. We'll be testing the resolve_compound
method using the provided name and SMILES pairs as test data. We'll use pytest
for the testing framework and mock the ClientSession
object to simulate the HTTP requests.
Give me a minute!
I'm a bot that handles simple bugs and feature requests but I might make mistakes. Please be kind!
Write unit tests in
tests/test_services
for thePubChem
class inpura/services/pubchem.py
. Here are some name and SMILES pairs that you can use as examples: