Skip to content

Commit

Permalink
Merge pull request #1332 from rajul/callisto_tests_removal
Browse files Browse the repository at this point in the history
Marked the two often-failing tests in callisto as xfail
  • Loading branch information
Cadair committed Mar 13, 2015
2 parents 45fbb73 + b792087 commit ab3ee6e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sunpy/spectra/tests/test_callisto.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pytest
import os
import numpy as np
from numpy.testing import assert_array_almost_equal
from numpy.testing import assert_array_almost_equal, assert_allclose
import sunpy.data.test

from sunpy.spectra.sources.callisto import (
Expand Down Expand Up @@ -125,11 +125,10 @@ def test_create_url_kw():
ca = CallistoSpectrogram.create(url=URL)
assert np.array_equal(ca.data, CallistoSpectrogram.read(URL).data)


def test_create_single_glob(CALLISTO_IMAGE):
PATTERN = os.path.join( os.path.dirname(CALLISTO_IMAGE), "BIR_*")
ca = CallistoSpectrogram.create(PATTERN)
assert np.array_equal(ca[0].data, CallistoSpectrogram.read(CALLISTO_IMAGE).data)
assert_allclose(ca[0].data, CallistoSpectrogram.read(CALLISTO_IMAGE).data)


# seems like this does not work anymore and can't figure out what it is for
Expand All @@ -138,14 +137,13 @@ def test_create_single_glob(CALLISTO_IMAGE):
# ca = CallistoSpectrogram.create(singlepattern=PATTERN)
# assert np.array_equal(ca[0].data, CallistoSpectrogram.read(CALLISTO_IMAGE).data)


def test_create_glob_kw(CALLISTO_IMAGE):
PATTERN = os.path.join(
os.path.dirname(CALLISTO_IMAGE),
"BIR_*"
)
ca = CallistoSpectrogram.create(pattern=PATTERN)[0]
assert np.array_equal(ca.data, CallistoSpectrogram.read(CALLISTO_IMAGE).data)
assert_allclose(ca.data, CallistoSpectrogram.read(CALLISTO_IMAGE).data)

def test_create_glob():
PATTERN = os.path.join(
Expand Down

0 comments on commit ab3ee6e

Please sign in to comment.