https://github.com/RadioAstronomySoftwareGroup/pyuvdata
Revision 9fc09f8a09cedb0aef0b11fcce1e912456d86e11 authored by Bryna Hazelton on 14 September 2020, 04:01:33 UTC, committed by Bryna Hazelton on 11 December 2020, 19:21:28 UTC
1 parent 81b2477
Tip revision: 9fc09f8a09cedb0aef0b11fcce1e912456d86e11 authored by Bryna Hazelton on 14 September 2020, 04:01:33 UTC
more test coverage, fixed missing handling for input_flag_array
more test coverage, fixed missing handling for input_flag_array
Tip revision: 9fc09f8
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)
Computing file changes ...