Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
YevheniiSemendiak committed Sep 6, 2024
1 parent e3eb59c commit 69e450b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/unit/test_bake_project.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import logging
import os
import sys
import tempfile
from pathlib import Path

import pytest
import yaml
from cookiecutter.exceptions import FailedHookException
from path import Path as PPath
from pipx.paths import DEFAULT_PIPX_BIN_DIR, DEFAULT_PIPX_GLOBAL_BIN_DIR
from pytest_cookies.plugin import Cookies # type: ignore
from pytest_virtualenv import VirtualEnv
Expand Down Expand Up @@ -126,7 +124,6 @@ def test_flow_description(cookies: Cookies) -> None:
@pytest.mark.parametrize("venv_install_packages", ["", "apolo-cli", "apolo-all"])
def test_flow_name(tmp_path: Path, venv_install_packages: str) -> None:
cwd = Path(os.getcwd())
logging.basicConfig(level=logging.DEBUG)

# This 'hides' apolo-cli installed via pipx
cur_path = os.environ["PATH"].split(os.pathsep)
Expand All @@ -138,7 +135,7 @@ def test_flow_name(tmp_path: Path, venv_install_packages: str) -> None:

with VirtualEnv(
env={**dict(os.environ), "PATH": os.pathsep.join(filtered_path)},
workspace=PPath(tempfile.mkdtemp()),
# workspace=PPath(tempfile.mkdtemp()),
# delete_workspace=True,
) as venv:
if venv_install_packages:
Expand Down

0 comments on commit 69e450b

Please sign in to comment.