Skip to content

Commit

Permalink
Merge pull request #73 from /issues/69
Browse files Browse the repository at this point in the history
Hide FutureWarnings from the user.
  • Loading branch information
mcquin authored Oct 2, 2017
2 parents e6d8828 + 9c7ba43 commit 14a4848
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions cytominer_database/command.py
Original file line number Diff line number Diff line change
@@ -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 = []

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ universal=1

[tool:pytest]
addopts =
-v
-v -Wd
minversion =
3.0.2
testpaths =
Expand Down
3 changes: 2 additions & 1 deletion tests/commands/test_command_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14a4848

Please sign in to comment.