https://github.com/RadioAstronomySoftwareGroup/pyuvdata
Tip revision: 8390aaceafd4868ecbd14a4cb6294ca18be7af00 authored by Bryna Hazelton on 12 February 2020, 23:55:06 UTC
remove extra mwa_beam.py file that got added in the rebase
remove extra mwa_beam.py file that got added in the rebase
Tip revision: 8390aac
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."""
from __future__ import absolute_import, division, print_function
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)