diff --git a/tests/cli/test_main_build.py b/tests/cli/test_main_build.py index ed56cabceb..d78f87b749 100644 --- a/tests/cli/test_main_build.py +++ b/tests/cli/test_main_build.py @@ -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") diff --git a/tests/test_api_test.py b/tests/test_api_test.py index 10200d5a99..3fa6286dcb 100644 --- a/tests/test_api_test.py +++ b/tests/test_api_test.py @@ -14,15 +14,6 @@ from .utils import metadata_dir -@pytest.mark.sanity -def test_recipe_test(testing_config): - """Test calling conda build -t """ - 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 - rather than """