Skip to content

Commit

Permalink
filter some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeplf committed Oct 4, 2023
1 parent 2401266 commit a1bd0be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/app/test_cell_densities.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import numpy.testing as npt
import pandas as pd
import pandas.testing as pdt
import pytest
import yaml # type: ignore
from click.testing import CliRunner
from voxcell import VoxelData # type: ignore
Expand Down Expand Up @@ -230,6 +231,7 @@ def _get_compile_measurements_result(runner):
return runner.invoke(tested.app, args)


@pytest.mark.filterwarnings("ignore::atlas_densities.exceptions.AtlasDensitiesWarning")
def test_compile_measurements():
runner = CliRunner()
with runner.isolated_filesystem():
Expand Down Expand Up @@ -338,6 +340,7 @@ def _get_fitting_result(runner):
return runner.invoke(tested.app, args)


@pytest.mark.filterwarnings("ignore::atlas_densities.exceptions.AtlasDensitiesWarning")
def test_fit_average_densities():
runner = CliRunner()
with runner.isolated_filesystem():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ def get_initialization_data():
}


@pytest.mark.filterwarnings("ignore::atlas_densities.exceptions.AtlasDensitiesWarning")
def test_create_inhibitory_neuron_densities():
data = get_initialization_data()
densities = tested.create_inhibitory_neuron_densities(
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ black_version = 22.0
[testenv]
extras = tests
passenv = PYTHONPATH
commands = pytest tests {posargs}
commands = pytest -W "ignore::DeprecationWarning:nptyping.typing_" tests {posargs}

[testenv:lint]
passenv = PYTHONPATH
Expand Down

0 comments on commit a1bd0be

Please sign in to comment.