Skip to content

Commit

Permalink
Merge pull request #69 from ethanwhite/add-tests
Browse files Browse the repository at this point in the history
Switch to using temp path for testing
  • Loading branch information
garezana committed Nov 6, 2023
2 parents fbfbaf5 + 2d3e17f commit 852c9b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_offlinedatasci.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from offlinedatasci import *
from glob import glob

def test_download_r():
download_r('testdir')
assert glob('testdir/R/R-*.pkg')
assert glob('testdir/R/R-*-win.exe')
def test_download_r(tmp_path):
download_r(tmp_path)
assert glob(f'{tmp_path}/R/R-*.pkg')
assert glob(f'{tmp_path}/R/R-*-win.exe')

0 comments on commit 852c9b0

Please sign in to comment.