mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix appdirs dependency
This commit is contained in:
parent
44cde1cbc3
commit
ff64a27ced
7 changed files with 85 additions and 14 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""Test suite for repos bootstrapping (install)."""
|
||||
import os
|
||||
import sys
|
||||
import pytest
|
||||
from igniter.bootstrap_repos import BootstrapRepos
|
||||
|
||||
|
|
@ -15,7 +16,19 @@ def fix_bootrap(tmp_path_factory):
|
|||
|
||||
|
||||
def test_install_live_repos(fix_bootrap, printer):
|
||||
printer(f"repo: {fix_bootrap.live_repo_dir}")
|
||||
printer(f"data: {fix_bootrap.data_dir}")
|
||||
rf = fix_bootrap.install_live_repos()
|
||||
expected_paths = [
|
||||
f"{rf}{os.path.sep}acre",
|
||||
f"{rf}{os.path.sep}avalon-core",
|
||||
f"{rf}{os.path.sep}avalon-unreal-integration",
|
||||
f"{rf}{os.path.sep}maya-look-assigner",
|
||||
f"{rf}{os.path.sep}pyblish-base",
|
||||
f"{rf}{os.path.sep}pype",
|
||||
f"{rf}{os.path.sep}pype-config"
|
||||
]
|
||||
assert os.path.exists(rf), "zip archive was not created"
|
||||
fix_bootrap.add_paths_from_archive(rf)
|
||||
for ep in expected_paths:
|
||||
assert ep in sys.path, f"{ep} not set correctly"
|
||||
|
||||
import pype
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue