Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #134 from delirious-lettuce/triple_double_quoted
Browse files Browse the repository at this point in the history
Use triple double-quotes for docstring as per PEP257
  • Loading branch information
iadgovuser11 authored Jun 28, 2017
2 parents 659311d + 46cad9e commit 3aa5b4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/test_metrics_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ def setUp(self):
metrics.app_metrics = {}

def test_convert_action_time_average(self):
'''
"""
ret = deepcopy(metrics.app_metrics)
for app in ret:
for action in app['actions']:
ret[app]['actions'][action]['avg_time'] = str(action['avg_time'])
return ret
'''
"""

test1 = {'app1': {'actions': {'action1': {'success': {'count': 0,
'avg_time': timedelta(100, 0, 1)}},
Expand Down
12 changes: 6 additions & 6 deletions tests/util/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def construct_case1():
'''
"""
Assumes case where the possible events are as follows:
controller: a,b,c
workflow: d,e,f
Expand All @@ -12,7 +12,7 @@ def construct_case1():
filter: x,y,z
Constructs a specific case of roughly 3 events per execution level subscribed to combinations of events
:return:
'''
"""

global_subs = GlobalSubscriptions(controller=['a'], next_step=[4, 5], flag=['u', 'v', 'w'], filter=['x'])

Expand Down Expand Up @@ -81,7 +81,7 @@ def construct_case1():


def construct_case2():
'''
"""
Assumes case where the possible events are as follows:
controller: a,b,c
workflow: d,e,f
Expand All @@ -91,7 +91,7 @@ def construct_case2():
filter: x,y,z
Constructs a specific case which is simpler than case 1
:return:
'''
"""

global_subs = GlobalSubscriptions(controller=['a'], next_step=[4, 5], flag=['u', 'v', 'w'], filter=['x'])

Expand Down Expand Up @@ -137,13 +137,13 @@ def construct_case2():


def __visit_node(node, paths, current):
'''
"""
Depth first search through subscription tree
:param node: Current Node
:param paths: accumulator for all valid ancestries along with accepted and rejected events for each level
:param current: current ancestry
:return:
'''
"""
paths.append({'ancestry': current, 'events': node['events'], 'rejected': node['rejected']})
for name, subnode in node['subs'].items():
current_cpy = list(current)
Expand Down

0 comments on commit 3aa5b4d

Please sign in to comment.