Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
let us see if this works
  • Loading branch information
nabobalis committed May 21, 2019
1 parent 9f4bca7 commit 3d9b75d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sunpy/util/tests/test_config.py
Expand Up @@ -55,7 +55,7 @@ def test_print_config_files(undo_download_dir_patch):
def test_get_and_create_download_dir(undo_download_dir_patch):
# test default config
path = get_and_create_download_dir()
assert Path(path) == Path(USER) / 'sunpy' / 'data'
assert Path(path) == (Path(USER) / 'sunpy' / 'data').resolve()
# test updated config
new_path = os.path.join(USER, 'sunpy_data_here_please')
config.set('downloads', 'download_dir', new_path)
Expand All @@ -69,7 +69,7 @@ def test_get_and_create_download_dir(undo_download_dir_patch):
def test_get_and_create_sample_dir():
# test default config
path = get_and_create_sample_dir()
assert Path(path) == Path(dirs.user_data_dir)
assert Path(path) == Path(dirs.user_data_dir).resolve()
# test updated config
new_path = os.path.join(USER, 'sample_data_here_please')
config.set('downloads', 'sample_dir', new_path)
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Expand Up @@ -7,12 +7,13 @@ changedir = tmp
setenv =
MPLBACKEND = agg
COLUMNS = 180
HOME = {toxinidir}/..
PYTEST_COMMAND = pytest --pyargs sunpy --cov=sunpy --cov-config={toxinidir}/setup.cfg --verbose -m "not figure" --durations=25
extras = all,tests
deps =
astropydev,numpydev: cython
numpydev: git+git://github.com/numpy/numpy
astropydev: git+git://github.com/astropy/astropy
numpydev: git+https://github.com/numpy/numpy
astropydev: git+https://github.com/astropy/astropy
pytest-cov
pytest-xdist
online: pytest-rerunfailures
Expand Down

0 comments on commit 3d9b75d

Please sign in to comment.