Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.

Commit 6e30e94

Browse files
committed
PEP 8
1 parent 7e2c893 commit 6e30e94

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ def start_consul_instance(acl_master_token=None):
5858
['http', 'serf_lan', 'serf_wan', 'server', 'dns'],
5959
get_free_ports(4) + [-1]))
6060

61-
config = {'ports': ports, 'performance': {'raft_multiplier': 1}, 'enable_script_checks': True}
61+
config = {'ports': ports, 'performance': {'raft_multiplier': 1},
62+
'enable_script_checks': True}
6263
if acl_master_token:
6364
config['acl_datacenter'] = 'dc1'
6465
config['acl_master_token'] = acl_master_token

tests/test_std.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,8 @@ def test_agent_members(self, consul_port):
396396
def test_agent_self(self, consul_port):
397397
c = consul.Consul(port=consul_port)
398398
assert set(c.agent.self().keys()) == set(['Member', 'Stats', 'Config',
399-
'Coord', 'DebugConfig', 'Meta'])
399+
'Coord', 'DebugConfig',
400+
'Meta'])
400401

401402
def test_agent_services(self, consul_port):
402403
c = consul.Consul(port=consul_port)
@@ -870,8 +871,9 @@ def test_status_leader(self, consul_port):
870871

871872
agent_self = c.agent.self()
872873
leader = c.status.leader()
874+
addr_port = agent_self['Stats']['consul']['leader_addr']
873875

874-
assert leader == agent_self['Stats']['consul']['leader_addr'], \
876+
assert leader == addr_port, \
875877
"Leader value was {0}, expected value " \
876878
"was {1}".format(leader, addr_port)
877879

0 commit comments

Comments
 (0)