Skip to content

Commit

Permalink
Fix flake8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pnuu committed Nov 30, 2021
1 parent 1f6192f commit c8eea22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion trollmoves/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
from contextlib import suppress

import tarfile
import pyinotify
from zmq import LINGER, POLLIN, REQ, Poller
import bz2
from posttroll import get_context
Expand Down
9 changes: 6 additions & 3 deletions trollmoves/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,8 @@ def test_reload_config_chain_added(Listener, NoisyPublisher, request_push, clien
@patch('trollmoves.client.request_push')
@patch('trollmoves.client.NoisyPublisher')
@patch('trollmoves.client.Listener')
def test_reload_config_chain_removed(Listener, NoisyPublisher, request_push, client_config_1_item, client_config_2_items):
def test_reload_config_chain_removed(Listener, NoisyPublisher, request_push,
client_config_1_item, client_config_2_items):
"""Test trollmoves.client.reload_config() when a chain is added."""
from trollmoves.client import reload_config

Expand Down Expand Up @@ -1132,7 +1133,8 @@ def test_reload_config_provider_topic_changed(Listener, NoisyPublisher, request_

@patch('trollmoves.client.request_push')
@patch('trollmoves.client.Chain')
def test_reload_config_chain_not_recreated(Chain, request_push, client_config_1_item, client_config_1_pub_item_modified):
def test_reload_config_chain_not_recreated(Chain, request_push, client_config_1_item,
client_config_1_pub_item_modified):
"""Test that the chain is not recreated when config is modified."""
from trollmoves.client import reload_config

Expand Down Expand Up @@ -1302,7 +1304,8 @@ def test_chain_listener_crashing_once(Listener, NoisyPublisher, request_push, ca
@patch('trollmoves.client.request_push')
@patch('trollmoves.client.NoisyPublisher')
@patch('trollmoves.client.Listener')
def test_chain_listener_crashing_all_the_time(Listener, NoisyPublisher, request_push, caplog, chain_config_with_one_item):
def test_chain_listener_crashing_all_the_time(Listener, NoisyPublisher, request_push,
caplog, chain_config_with_one_item):
"""Test the Chain object."""
from trollmoves.client import Chain
import trollmoves.client
Expand Down

0 comments on commit c8eea22

Please sign in to comment.