def venv_update_symlink_pwd(): # I wish I didn't need this =/ # surely there's a better way -.- # NOTE: `pip install TOP` causes an infinite copyfiles loop, under tox >.< from venv_update import __file__ as venv_update_path, dotpy # symlink so that we get coverage, where possible venv_update_path = Path(dotpy(venv_update_path)) local_vu = Path(venv_update_path.basename) local_vu.mksymlinkto(venv_update_path)
def test_dotpy(filename, expected): assert venv_update.dotpy(filename) == expected