Completed
Pull Request — master (#2423)
by
unknown
01:54
created

load_testdata()   A

Complexity

Conditions 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
1
import os
2
3
4
def load_testdata(filename):
5
    filename = os.path.join(os.path.dirname(
6
        os.path.realpath(__file__)),
7
        os.path.join("documentation_extraction_testdata",
8
                     filename))
9
10
    with open(filename) as test_file:
11
        data = test_file.read()
12
13
    return data.splitlines(keepends=True)
14