Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
Pass flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Mar 17, 2019
1 parent 43e5c93 commit 383b863
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# -*- coding: utf-8 -*-

"""Tests for the conversion procedure"""
"""Tests for the conversion procedure."""

import unittest
from typing import Tuple, Type

from biokeen.convert import get_triple
from biokeen.convert.converters import (
AssociationConverter, Converter, CorrelationConverter, DecreasesAmountConverter, DrugIndicationConverter,
DrugSideEffectConverter, EquivalenceConverter, IncreasesAmountConverter, IsAConverter,
MiRNADecreasesExpressionConverter, NamedComplexHasComponentConverter, PartOfBiologicalProcess,
PartOfNamedComplexConverter, RegulatesActivityConverter, RegulatesAmountConverter,
)
from pybel import BELGraph
from pybel.constants import (
ASSOCIATION, DECREASES, EQUIVALENT_TO, HAS_COMPONENT, INCREASES, IS_A, NEGATIVE_CORRELATION, OBJECT, PART_OF,
Expand All @@ -17,14 +24,6 @@
from pybel.testing.utils import n
from pybel.typing import EdgeData

from biokeen.convert import get_triple
from biokeen.convert.converters import (
AssociationConverter, Converter, CorrelationConverter, DecreasesAmountConverter, DrugIndicationConverter,
DrugSideEffectConverter, EquivalenceConverter, IncreasesAmountConverter, IsAConverter,
MiRNADecreasesExpressionConverter, NamedComplexHasComponentConverter, PartOfBiologicalProcess,
PartOfNamedComplexConverter, RegulatesActivityConverter, RegulatesAmountConverter,
)


def _rel(x):
return {RELATION: x}
Expand Down Expand Up @@ -94,6 +93,7 @@ def help_test_convert(self,
edge_data: EdgeData,
triple: Tuple[str, str, str],
) -> None:
"""Test a converter class."""
self.assertTrue(issubclass(converter, Converter), msg=f'Not a Converter: {converter.__name__}')
key = n()
self.assertTrue(
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ deps =
flake8-import-order
pep8-naming
commands =
flake8 src/biokeen/ setup.py
flake8 src/biokeen/ tests/ setup.py
description = Run the flake8 tool with several plugins (bandit, docstrings, import order, pep8 naming).

[testenv:xenon]
Expand Down

0 comments on commit 383b863

Please sign in to comment.