Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use system pytest #789

Merged
merged 2 commits into from
Jul 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
import numpy as np

from astropy.tests.helper import pytest
import pytest

from ..binary_galprop_models import BinaryGalpropInterpolModel

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
"""
import numpy as np
from astropy.tests.helper import pytest
import pytest

from ....factories import PrebuiltHodModelFactory

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
"""
from astropy.tests.helper import pytest
import pytest
import numpy as np

from ....occupation_models import OccupationComponent, Zheng07Cens, Zheng07Sats
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
"""
import numpy as np
from astropy.tests.helper import pytest
import pytest

from ....factories import PrebuiltHodModelFactory

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
"""
from astropy.tests.helper import pytest
import pytest

from ...factories import PrebuiltHodModelFactory

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
from __future__ import (absolute_import, division, print_function)

from astropy.tests.helper import pytest
import pytest
from astropy.config.paths import _find_home
import numpy as np
from copy import deepcopy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
from __future__ import absolute_import, division, print_function

from astropy.tests.helper import pytest
import pytest

import numpy as np
from copy import deepcopy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals

import numpy as np
from astropy.tests.helper import pytest
import pytest
from astropy.table import Table

from ..mock_helpers import infer_mask_from_kwargs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import (absolute_import, division, print_function)

import numpy as np
from astropy.tests.helper import pytest
import pytest
from astropy.config.paths import _find_home

from ...factories import PrebuiltHodModelFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from __future__ import absolute_import, division, print_function

import numpy as np
from astropy.tests.helper import pytest
import pytest

from ...factories import PrebuiltSubhaloModelFactory, SubhaloModelFactory

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
from __future__ import (absolute_import, division, print_function)

from astropy.tests.helper import pytest
import pytest

import numpy as np
from copy import deepcopy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import numpy as np
from scipy.stats import kstest
from scipy.interpolate import interp1d
from astropy.tests.helper import pytest
import pytest
from scipy.integrate import cumtrapz

from .. import Cacciato09Cens, Cacciato09Sats
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
import numpy as np

from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext

from ..occupation_model_template import OccupationComponent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import numpy as np
from astropy.table import Table
from astropy.tests.helper import pytest
import pytest

from ..tinker13_components import Tinker13Cens
from ....custom_exceptions import HalotoolsError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
from astropy.table import Table

from astropy.tests.helper import pytest
import pytest
import warnings

from ....empirical_models import OccupationComponent, Zheng07Cens
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
from copy import deepcopy

from astropy.tests.helper import pytest
import pytest
import warnings

from ....empirical_models import OccupationComponent, Zheng07Sats, Zheng07Cens
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np
from astropy.table import Table
from astropy.utils.misc import NumpyRNGContext
from astropy.tests.helper import pytest
import pytest

from ..dutton_maccio14 import dutton_maccio14
from ..direct_from_halo_catalog import direct_from_halo_catalog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import numpy as np
from astropy.config.paths import _find_home
from astropy.tests.helper import pytest
import pytest

from ...biased_nfw_phase_space import BiasedNFWPhaseSpace
from .......factories import PrebuiltHodModelFactory, HodModelFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
from astropy.table import Table
from astropy.utils.misc import NumpyRNGContext
from astropy.tests.helper import pytest
import pytest

from ...nfw_phase_space import NFWPhaseSpace

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import numpy as np

from astropy.tests.helper import pytest
import pytest

from astropy.cosmology import WMAP9, FLRW

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import numpy as np

from astropy.tests.helper import pytest
import pytest

from astropy.cosmology import WMAP9, Planck13
from astropy import units as u
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import division, print_function, absolute_import, unicode_literals

import numpy as np
from astropy.tests.helper import pytest
import pytest
from copy import deepcopy

from ..subhalo_phase_space import SubhaloPhaseSpace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import division, print_function, absolute_import, unicode_literals

import numpy as np
from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext
from astropy.table import Table

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import division, print_function, absolute_import, unicode_literals

import numpy as np
from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext

from .. import subhalo_selection_kernel as ssk
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
"""
import numpy as np
from astropy.tests.helper import pytest
import pytest

from ..zu_mandelbaum16 import ZuMandelbaum16QuenchingCens, ZuMandelbaum16QuenchingSats

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
"""
from astropy.tests.helper import pytest
import pytest

from ...smhm_models import Behroozi10SmHm

Expand Down
2 changes: 1 addition & 1 deletion halotools/empirical_models/tests/test_model_helpers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
"""
import numpy as np
from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext

from ..model_helpers import custom_spline, create_composite_dtype
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import numpy as np
from astropy.utils.misc import NumpyRNGContext
from astropy.tests.helper import pytest
import pytest

from .pure_python_counts_in_cells import pure_python_counts_in_cylinders

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import numpy as np
from scipy.sparse import coo_matrix
from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext

from ..fof_groups import FoFGroups
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import numpy as np
from astropy.utils.misc import NumpyRNGContext
from astropy.tests.helper import pytest
import pytest

from ..isolation_functions_helpers import (_get_r_max,
_set_isolation_approx_cell_sizes, _func_signature_int_from_cond_func)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
from __future__ import (absolute_import, division, print_function)
import numpy as np
from astropy.tests.helper import pytest
import pytest

from ..large_scale_density_spherical_annulus import large_scale_density_spherical_annulus

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
from __future__ import (absolute_import, division, print_function)
import numpy as np
from astropy.tests.helper import pytest
import pytest

from ..large_scale_density_spherical_volume import large_scale_density_spherical_volume

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import (absolute_import, division, print_function, unicode_literals)

import numpy as np
from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext
from astropy.config.paths import _find_home

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import (absolute_import, division, print_function, unicode_literals)

import numpy as np
from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext
from astropy.config.paths import _find_home

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
from __future__ import absolute_import, division, print_function

from astropy.tests.helper import pytest
import pytest

from ..mesh_helpers import _set_approximate_cell_sizes, _enforce_maximum_search_length

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals

import numpy as np
from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext
from astropy.config.paths import _find_home

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from ..npairs_jackknife_3d import npairs_jackknife_3d
# load comparison simple pair counters

from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext

slow = pytest.mark.slow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals

import numpy as np
from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext

from ..npairs_projected import npairs_projected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# load comparison simple pair counters
from ..pairs import s_mu_npairs as pure_python_brute_force_npairs_s_mu

from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext

slow = pytest.mark.slow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals

import numpy as np
from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext

from ..npairs_xy_z import npairs_xy_z
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np

from astropy.utils.misc import NumpyRNGContext
from astropy.tests.helper import pytest
import pytest

from .pure_python_distance_matrix import pure_python_distance_matrix_3d, pure_python_distance_matrix_xy_z

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import itertools
import numpy as np
from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext

from ..rectangular_mesh import RectangularDoubleMesh, sample1_cell_size
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import absolute_import, division, print_function

import numpy as np
from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext

from ..los_pvd_vs_rp import los_pvd_vs_rp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
from __future__ import absolute_import, division, print_function
import numpy as np
from astropy.tests.helper import pytest
import pytest
from astropy.utils.misc import NumpyRNGContext

from ..mean_los_velocity_vs_rp import mean_los_velocity_vs_rp
Expand Down
Loading