Skip to content

Commit

Permalink
add tests for configure.util
Browse files Browse the repository at this point in the history
  • Loading branch information
wtbarnes committed Dec 8, 2023
1 parent 1e49062 commit a73fa1b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pydrad/configure/tests/test_util.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import pytest

from pydrad.configure.util import get_clean_hydrad


def test_clean_hydrad_from_local(tmpdir_factory, hydrad):
new_hydrad_copy = tmpdir_factory.mktemp('new_hydrad')
get_clean_hydrad(new_hydrad_copy, base_path=hydrad, from_github=False, overwrite=True)


def test_clean_hydrad_no_args_raises_error():
with pytest.raises(ValueError, match='Specify local path to HYDRAD or clone from GitHub'):
get_clean_hydrad('foo', base_path=None, from_github=False)

0 comments on commit a73fa1b

Please sign in to comment.