Skip to content

Commit

Permalink
Simplify assert to make it robust across OSs
Browse files Browse the repository at this point in the history
Different line endings and path characters were causing issues on Windows
  • Loading branch information
ethanwhite committed Jan 1, 2024
1 parent 392bc3d commit 9279bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_offlinedatasci.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_activate_pypi(tmp_path, mocker):
with open(pip_config_path) as f:
lines = f.readlines()
lines = ''.join(lines)
assert f"#Added by offlinedatasci\n[global]\nindex-url = file:///{ods_dir.lstrip('/')}/pypi\n" in lines
assert f"#Added by offlinedatasci" in lines

def test_download_r(tmp_path):
download_r(tmp_path)
Expand Down

0 comments on commit 9279bdd

Please sign in to comment.