Skip to content

Commit

Permalink
Fix GitHub test
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 committed Jun 27, 2024
1 parent e0ec2a0 commit 8dae7fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/test_repositories.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pathlib import Path
from pathlib import PosixPath

import datahugger

Expand All @@ -7,10 +7,10 @@ def test_get_repositories(location, files, ignored_files, dh_kwargs, tmpdir):
datahugger.get(location, tmpdir, **dh_kwargs)

if files:
assert Path(tmpdir, files).exists()
assert PosixPath(tmpdir, files).exists()

if ignored_files:
assert not Path(tmpdir, ignored_files).exists()
assert not PosixPath(tmpdir, ignored_files).exists()


# def test_info_without_loading(tmpdir):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_repositories.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ files = "AA_age.tab"

[[github]]
location = "https://github.com/j535d165/cbsodata"
files = "README.md"
files = "cbsodata-main/README.md"

0 comments on commit 8dae7fa

Please sign in to comment.