for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import pytest
from mandos.cli import Commands
from .. import get_test_resource
class TestActivitySearch:
def test_find(self):
If a method does not access any attributes of the class, it could also be implemented as a function or static method. This can help improve readability. For example
class Foo: def some_method(self, x, y): return x + y;
could be written as
class Foo: @classmethod def some_method(cls, x, y): return x + y;
df, triples = Commands.binding(get_test_resource("inchis.txt"))
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.
# TODO double-check
TODO
FIXME
assert len(df) == 4
assert len(triples) == 1
assert triples[0].object_id == "CHEMBL2093872"
assert triples[0].compound_name.lower() == "alprazolam"
if __name__ == "__main__":
pytest.main()