Completed
Push — master ( d1f0a7...3b2ece )
by Edward
21:04 queued 05:38
created

st2tests.fixtures.history_views.MyAction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 3
Duplicated Lines 0 %
Metric Value
wmc 1
dl 0
loc 3
rs 10
1
import os
2
import yaml
3
import glob
4
5
6
PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)))
7
FILES = glob.glob('%s/*.yaml' % PATH)
8
ARTIFACTS = {}
9
10
11
for f in FILES:
12
    f_name = os.path.split(f)[1]
13
    name = unicode(os.path.splitext(f_name)[0])
14
    with open(f, 'r') as fd:
15
        ARTIFACTS[name] = yaml.safe_load(fd)
16