summaryrefslogtreecommitdiff
path: root/tests/conftest.py
blob: 1b4747ec83c941f404d815027660f87df7688612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
import platform
import sys
from pathlib import Path
from subprocess import PIPE, Popen

import pytest

pytest_plugins = ['helpers_namespace']


if sys.version_info < (3, 4):
    print("Requires Python 3.4+")
    sys.exit(1)


TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
PROJECT_ROOT = os.path.dirname(TESTS_ROOT)


@pytest.fixture
def resources():
    return Path(TESTS_ROOT) / 'resources'


@pytest.fixture(scope="function")
def outdir(tmpdir):
    return Path(str(tmpdir))