Skip to content

Commit

Permalink
tests: mark tests as slow
Browse files Browse the repository at this point in the history
> 30sec I marked as extra slow
> 4sec I marked as slow
  • Loading branch information
Hofer-Julian committed Jan 10, 2025
1 parent 209bc8e commit 9e6236a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integration_python/pixi_build/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from ..common import verify_cli_command


@pytest.mark.slow
def test_build_conda_package(pixi: Path, tmp_pixi_workspace: Path, build_data: Path) -> None:
"""
This one tries to build the rich example project
Expand All @@ -28,6 +29,7 @@ def test_build_conda_package(pixi: Path, tmp_pixi_workspace: Path, build_data: P
assert package_to_be_built.exists()


@pytest.mark.extra_slow
def test_build_using_rattler_build_backend(
pixi: Path,
tmp_pixi_workspace: Path,
Expand All @@ -53,6 +55,7 @@ def test_build_using_rattler_build_backend(
assert package_to_be_built.exists()


@pytest.mark.extra_slow
def test_smokey(pixi: Path, build_data: Path, tmp_pixi_workspace: Path) -> None:
test_data = build_data.joinpath("rattler-build-backend")
# copy the whole smokey project to the tmp_pixi_workspace
Expand Down
5 changes: 5 additions & 0 deletions tests/integration_python/pixi_build/test_git.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from pathlib import Path
import shutil
import pytest

from ..common import verify_cli_command


@pytest.mark.extra_slow
def test_build_git_source_deps(pixi: Path, tmp_pixi_workspace: Path, build_data: Path) -> None:
"""
This one tries to build the rich example project
Expand Down Expand Up @@ -52,6 +54,7 @@ def test_build_git_source_deps(pixi: Path, tmp_pixi_workspace: Path, build_data:
assert f"conda: git+{target_git_url}#{commit_hash}" in pixi_lock_file.read_text()


@pytest.mark.extra_slow
def test_build_git_source_deps_from_branch(
pixi: Path, tmp_pixi_workspace: Path, build_data: Path
) -> None:
Expand Down Expand Up @@ -112,6 +115,7 @@ def test_build_git_source_deps_from_branch(
)


@pytest.mark.extra_slow
def test_build_git_source_deps_from_rev(
pixi: Path, tmp_pixi_workspace: Path, build_data: Path
) -> None:
Expand Down Expand Up @@ -175,6 +179,7 @@ def test_build_git_source_deps_from_rev(
)


@pytest.mark.slow
def test_build_git_source_deps_from_tag(
pixi: Path, tmp_pixi_workspace: Path, build_data: Path
) -> None:
Expand Down

0 comments on commit 9e6236a

Please sign in to comment.