Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline test_api_build_dll_package.py recipe fixture #4722

Merged
merged 3 commits into from
Jan 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions tests/test_api_build_dll_package.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import os
import pytest

from conda_build import api
from conda_build.api import build

from .utils import thisdir


@pytest.fixture()
def recipe():
return os.path.join(thisdir, 'test-recipes', 'dll-package')
from .utils import dll_dir


@pytest.mark.sanity
def test_recipe_build(recipe, testing_config, testing_workdir, monkeypatch):
def test_recipe_build(testing_config, testing_workdir, monkeypatch):
# These variables are defined solely for testing purposes,
# so they can be checked within build scripts
testing_config.activate = True
monkeypatch.setenv("CONDA_TEST_VAR", "conda_test")
monkeypatch.setenv("CONDA_TEST_VAR_2", "conda_test_2")
api.build(recipe, config=testing_config)
build(dll_dir, config=testing_config)
1 change: 1 addition & 0 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def numpy_installed():
subpackage_dir = os.path.join(thisdir, "test-recipes", "split-packages")
fail_dir = os.path.join(thisdir, "test-recipes", "fail")
variants_dir = os.path.join(thisdir, "test-recipes", "variants")
dll_dir = os.path.join(thisdir, "test-recipes", "dll-package")
go_dir = os.path.join(thisdir, "test-recipes", "go-package")
archive_dir = os.path.join(thisdir, "archives")

Expand Down