Skip to content

Commit a705c5c

Browse files
committed
Add pandas to requirements
1 parent 8559be6 commit a705c5c

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ addons:
1616
- graphviz
1717

1818
stages:
19-
- name: Build tests
19+
- name: Build tests
2020
- name: Tests with various Astropy/Numpy versions
2121
- name: Test docs, PEP8, and coverage
2222
- name: Remote data tests (allowed to fail)
23-
23+
2424
stage: Build tests
2525

2626
# setting up environment variables and the build matrix
@@ -33,7 +33,7 @@ env:
3333
- MAIN_CMD='python setup.py'
3434
- SETUP_CMD='test'
3535
- EVENT_TYPE='pull_request push'
36-
- PIP_DEPENDENCIES='numpy scipy matplotlib ads synphot https://github.com/astropy/astroquery/archive/master.zip pytest-astropy sphinx-astropy'
36+
- PIP_DEPENDENCIES='numpy scipy matplotlib pandas ads synphot https://github.com/astropy/astroquery/archive/master.zip pytest-astropy sphinx-astropy'
3737
- ADS_DEV_KEY=TjUyPHFOH48m5Katkeq0UCZQcejTg6bDbTuTGHxT
3838

3939
matrix:
@@ -59,15 +59,15 @@ matrix:
5959
- os: linux
6060
stage: Tests with various Astropy/Numpy versions
6161
env: PYTHON_VERSION=3.7 NUMPY_VERSION=1.14 ASTROPY_VERSION=3 PYTEST_VERSION='<3.7'
62-
62+
6363
# Test docs, PEP8, and coverage
6464
- os: linux
6565
stage: Test docs, PEP8, and coverage
66-
env: MAIN_CMD='test --coverage' SETUP_CMD=''
66+
env: MAIN_CMD='test --coverage' SETUP_CMD=''
6767

6868
- os: linux
6969
stage: Test docs, PEP8, and coverage
70-
env: SETUP_CMD='build_docs -w'
70+
env: SETUP_CMD='build_docs -w'
7171

7272
- os: linux
7373
stage: Test docs, PEP8, and coverage
@@ -94,4 +94,4 @@ script:
9494
after_success:
9595
- if [[ $SETUP_CMD == 'test --coverage' ]]; then
9696
coveralls --rcfile='sbpy/tests/coveragerc';
97-
fi
97+
fi

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ matplotlib
44
ads
55
synphot
66
git+git://github.com/astropy/astroquery.git@master#egg=astroquery
7+
pandas

sbpy/dastcom5/tests/test_dastcom5.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,23 @@
77
from sbpy import dastcom5
88

99

10+
@mock.patch("sbpy.dastcom5.dastcom5.np.fromfile")
1011
@mock.patch("sbpy.dastcom5.dastcom5.open")
11-
def test_asteroid_db_is_called_with_right_path(mock_open):
12+
def test_asteroid_db_is_called_with_right_path(mock_open, mock_np_fromfile):
1213
dastcom5.asteroid_db()
1314
mock_open.assert_called_with(dastcom5.AST_DB_PATH, "rb")
1415

1516

17+
@mock.patch("sbpy.dastcom5.dastcom5.np.fromfile")
1618
@mock.patch("sbpy.dastcom5.dastcom5.open")
17-
def test_comet_db_is_called_with_right_path(mock_open):
19+
def test_comet_db_is_called_with_right_path(mock_open, mock_np_fromfile):
1820
dastcom5.comet_db()
1921
mock_open.assert_called_with(dastcom5.COM_DB_PATH, "rb")
2022

2123

24+
@mock.patch("sbpy.dastcom5.dastcom5.np.fromfile")
2225
@mock.patch("sbpy.dastcom5.dastcom5.open")
23-
def test_read_headers(mock_open):
26+
def test_read_headers(mock_open, mock_np_fromfile):
2427
dastcom5.read_headers()
2528
mock_open.assert_any_call(
2629
os.path.join(dastcom5.DBS_LOCAL_PATH, "dast5_le.dat"), "rb"
@@ -97,6 +100,6 @@ def test_download_dastcom5_downloads_file(
97100
dastcom5.download_dastcom5()
98101
mock_request.assert_called_once_with(
99102
dastcom5.FTP_DB_URL + "dastcom5.zip",
100-
os.path.join(dastcom5.SBPY_LOCAL_PATH, "dastcom5.zip"),
103+
os.path.join(dastcom5.POLIASTRO_LOCAL_PATH, "dastcom5.zip"),
101104
dastcom5._show_download_progress,
102105
)

0 commit comments

Comments
 (0)