Skip to content

Commit

Permalink
wip tests, rebase when tested on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Mar 8, 2019
1 parent c581024 commit 1a15153
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion sunpy/util/tests/test_config.py
@@ -1,11 +1,17 @@
import os

from sunpy import config
from sunpy.util.config import get_and_create_sample_dir, get_and_create_download_dir
from sunpy.util.config import (get_and_create_sample_dir, get_and_create_download_dir,
CONFIG_DIR, print_config)

USER = os.path.expanduser('~')


def test_config_dir():
assert USER in CONFIG_DIR
assert CONFIG_DIR.split(os.path.sep)[-1] == "sunpy"


def test_get_and_create_download_dir():
# test default config
path = get_and_create_download_dir()
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -73,4 +73,4 @@ conda_deps =
zeep
conda_channels = conda-forge
commands =
pytest --verbose --pyargs sunpy -m "not figure" --rootdir={toxinidir} --cov=sunpy {posargs}
pytest --verbose --pyargs sunpy -m "not figure" --rootdir={toxinidir} --cov=sunpy {posargs} {toxinidir}/docs

0 comments on commit 1a15153

Please sign in to comment.