from os.path import normpath, abspath, join

import pytest

this_file = abspath(__file__)
TEST_DATA_DIR =join(this_file, normpath(abspath('test_data/')))
HVC_SOURCE_DIR = join(this_file, normpath(abspath('../hvc/')))

@pytest.fixture
def test_data_dir():
    return TEST_DATA_DIR


@pytest.fixture
def hvc_source_dir():
    return HVC_SOURCE_DIR

from os.path import normpath, join, dirname

import pytest

this_file_dirname = dirname(__file__)
TEST_DATA_DIR = join(this_file_dirname, 'test_data')
HVC_SOURCE_DIR = join(this_file_dirname, normpath('../hvc/'))


@pytest.fixture
def test_data_dir():
    return TEST_DATA_DIR


@pytest.fixture
def hvc_source_dir():
    return HVC_SOURCE_DIR

fix bugs in tests/conftest.py that were causing fixtures to return wrong paths