https://github.com/RadioAstronomySoftwareGroup/pyuvdata
Revision 87aa65168329773b84b698b9d81605a01c2e1df2 authored by Matthew Kolopanis on 09 February 2021, 22:39:25 UTC, committed by Paul La Plante on 16 February 2021, 20:13:13 UTC
1 parent 8045e92
Raw File
Tip revision: 87aa65168329773b84b698b9d81605a01c2e1df2 authored by Matthew Kolopanis on 09 February 2021, 22:39:25 UTC
use helpers to find max, use parallel for large bls, no python numpy
Tip revision: 87aa651
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