https://github.com/RadioAstronomySoftwareGroup/pyuvdata
Revision 0e722624383c4b0ad28dff5cc8ca6c40d6da4d3e authored by Bryna Hazelton on 11 March 2021, 22:24:11 UTC, committed by Paul La Plante on 12 March 2021, 17:54:00 UTC
1 parent 12e627e
Raw File
Tip revision: 0e722624383c4b0ad28dff5cc8ca6c40d6da4d3e authored by Bryna Hazelton on 11 March 2021, 22:24:11 UTC
try more indentation
Tip revision: 0e72262
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