Revision 03fb8d4ce6bb2f08ee21b1daf035f2c102a983fe authored by Bryna Hazelton on 25 September 2020, 16:38:52 UTC, committed by Bryna Hazelton on 06 October 2020, 00:23:06 UTC
None of the updates seem important to pyuvdata, but we should have the most recent version.
1 parent d64a6b0
Raw File
conftest.py
# -*- mode: python; coding: utf-8 -*-
# Copyright (c) 2020 Radio Astronomy Software Group
# Licensed under the 2-clause BSD License

"""Testing environment setup and teardown for pytest."""
import os
import shutil

import pytest
from pyuvdata.data import DATA_PATH


@pytest.fixture(autouse=True, scope="session")
def setup_and_teardown_package():
    """Make data/test directory to put test output files in."""
    testdir = os.path.join(DATA_PATH, "tutorial_output/")
    if not os.path.exists(testdir):
        print("making test directory")
        os.mkdir(testdir)

    yield

    shutil.rmtree(testdir)
back to top