diff --git a/cytominer_database/command.py b/cytominer_database/command.py index 906b530..7168b67 100644 --- a/cytominer_database/command.py +++ b/cytominer_database/command.py @@ -1,10 +1,16 @@ import os import sys +import warnings import click class Command(click.MultiCommand): + def __init__(self): + super(Command, self).__init__() + + warnings.simplefilter(action="ignore", category=FutureWarning) + def list_commands(self, context): rv = [] diff --git a/setup.cfg b/setup.cfg index 7aedffd..fee0ea5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,7 +3,7 @@ universal=1 [tool:pytest] addopts = - -v + -v -Wd minversion = 3.0.2 testpaths = diff --git a/tests/commands/test_command_ingest.py b/tests/commands/test_command_ingest.py index 699a7e6..572752f 100644 --- a/tests/commands/test_command_ingest.py +++ b/tests/commands/test_command_ingest.py @@ -47,7 +47,8 @@ def test_run(dataset, runner): config = configparser.ConfigParser() - config.read(config_file) + with open(config_file, "r") as config_fd: + config.read_file(config_fd) for (k, v) in dict({"cells": "Cells.csv", "cytoplasm": "Cytoplasm.csv", "nuclei": "Nuclei.csv"}).items(): config["filenames"][k] = v