File: inputfiles.py

package info (click to toggle)
junit2html 31.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 608 kB
  • sloc: xml: 3,208; python: 1,075; makefile: 6; sh: 5
file content (18 lines) | stat: -rw-r--r-- 307 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Helper for loading our test files
"""
import os
HERE = os.path.dirname(os.path.abspath(__file__))


def get_reports():
    return [x for x in os.listdir(HERE) if x.endswith(".xml")]


def get_filepath(filename):
    """

    :param filename:
    :return:
    """
    return os.path.join(HERE, filename)