Skip to content

Commit

Permalink
Remove additional test recipe tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Sep 4, 2024
1 parent 785613c commit 76df033
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
29 changes: 0 additions & 29 deletions tests/cli/test_main_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,35 +443,6 @@ def test_relative_path_test_artifact(
main_build.execute(args)


def test_relative_path_test_recipe(conda_build_test_recipe_envvar: str):
# this test builds a package into (cwd)/relative/path and then calls:
# conda-build --test --croot ./relative/path/ /abs/path/to/recipe

empty_sections = Path(metadata_dir, "empty_with_build_script")
croot_rel = Path(".", "relative", "path")
croot_abs = croot_rel.resolve()

# build the package
args = [
"--no-anaconda-upload",
"--no-test",
f"--croot={croot_abs}",
str(empty_sections),
]
main_build.execute(args)

assert len(list(croot_abs.glob("**/*.tar.bz2"))) == 1

# run the test stage with relative croot
args = [
"--no-anaconda-upload",
"--test",
f"--croot={croot_rel}",
str(empty_sections),
]
main_build.execute(args)


def test_test_extra_dep(testing_metadata):
testing_metadata.meta["test"]["imports"] = ["imagesize"]
api.output_yaml(testing_metadata, "meta.yaml")
Expand Down
9 changes: 0 additions & 9 deletions tests/test_api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@
from .utils import metadata_dir


@pytest.mark.sanity
def test_recipe_test(testing_config):
"""Test calling conda build -t <recipe dir>"""
recipe = os.path.join(metadata_dir, "has_prefix_files")
metadata = api.render(recipe, config=testing_config)[0][0]
api.build(metadata, notest=True, anaconda_upload=False)
api.test(recipe, config=metadata.config)


@pytest.mark.sanity
def test_package_test(testing_config):
"""Test calling conda build -t <package file> - rather than <recipe dir>"""
Expand Down

0 comments on commit 76df033

Please sign in to comment.