Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz-e committed Aug 12, 2024
1 parent 0566dd7 commit eee1c15
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/functionalizer/filters/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def load(*dirnames: str) -> None:


class FilterInitializationError(RuntimeError):
pass
"""Error to be raised when filters should be skipped."""


# ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data_input_sonata.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy
import pytest
import sparkmanager as sm
from conftest import DEFAULT_ARGS, DATADIR, create_functionalizer
from conftest import DATADIR, DEFAULT_ARGS, create_functionalizer
from functionalizer.io.circuit import BRANCH_COLUMNS, EdgeData
from functionalizer.utils.conf import Configuration

Expand Down
12 changes: 4 additions & 8 deletions tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pyspark.sql.functions as F
import pytest
import sparkmanager as sm
from conftest import DEFAULT_ARGS, DATADIR, create_functionalizer
from conftest import DATADIR, DEFAULT_ARGS, create_functionalizer
from functionalizer.utils.spark import cache_broadcast_single_part

NUM_AFTER_DISTANCE = 226301
Expand Down Expand Up @@ -57,17 +57,13 @@ def test_spine_morphos(self, fz):
class TestBogusFilterInitialization:
"""Test initialization of optional filters"""

@pytest.mark.parametrize("fz", [{"circuit_config": DATADIR / "circuit_config_invalid.json"}], indirect=True)
@pytest.mark.parametrize(
"fz", [{"circuit_config": DATADIR / "circuit_config_invalid.json"}], indirect=True
)
def test_spine_morphos(self, fz):
with pytest.raises(AssertionError):
fz.process_filters(filters=["SpineMorphologies"])

class TestFilterInitialization:
"""Test initialization of optional filters"""

def test_spine_morphos(self, fz):
fz.process_filters(filters=["SpineMorphologies"])


@pytest.mark.slow
class TestFilters(object):
Expand Down

0 comments on commit eee1c15

Please sign in to comment.