fix appdirs dependency

This commit is contained in:
Ondrej Samohel 2020-09-17 09:56:17 +02:00
parent 44cde1cbc3
commit ff64a27ced
No known key found for this signature in database
GPG key ID: 8A29C663C672C2B7
7 changed files with 85 additions and 14 deletions

View file

@ -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