Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Dec 8, 2023
1 parent 97d5788 commit fdb62d9
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions tests/test_backwards_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@

@pytest.mark.skipif(os.name != "nt", reason="Windows only")
def test_import_paths():
"These import paths are/were used by conda <=23.7.2. Ensure they still work."
from menuinst import install # noqa
from menuinst.knownfolders import FOLDERID, get_folder_path # noqa
from menuinst.win32 import dirs_src # noqa
from menuinst.winshortcut import create_shortcut # noqa
"""Imports used by conda <=23.7.2. Ensure they still work."""
# ensure apipkg generated submodules work
from menuinst import install # noqa: F401
from menuinst.knownfolders import FOLDERID, get_folder_path # noqa: F401
from menuinst.win32 import dirs_src # noqa: F401
from menuinst.winshortcut import create_shortcut # noqa: F401
from menuinst.win_elevate import runAsAdmin, isUserAdmin # noqa: F401

# ensure legacy submodules work
import menuinst._legacy.cwd # noqa: F401
import menuinst._legacy.main # noqa: F401
import menuinst._legacy.utils # noqa: F401
import menuinst._legacy.win32 # noqa: F401

0 comments on commit fdb62d9

Please sign in to comment.