https://github.com/RadioAstronomySoftwareGroup/pyuvdata
Revision 537648ab8ee0b7775092a6b4a1f4a244b3599b4c authored by Matthew Kolopanis on 17 January 2020, 22:36:29 UTC, committed by Bryna Hazelton on 13 February 2020, 08:30:39 UTC
1 parent 4662795
Tip revision: 537648ab8ee0b7775092a6b4a1f4a244b3599b4c authored by Matthew Kolopanis on 17 January 2020, 22:36:29 UTC
try to add conftest to be ignored in coveragerc
try to add conftest to be ignored in coveragerc
Tip revision: 537648a
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)
Computing file changes ...