Skip to content

Commit

Permalink
Combine TYPE_CHECKING & remove duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Jul 23, 2024
1 parent 9c9b50b commit 28df04b
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@

from .utils import get_noarch_python_meta, metadata_dir, metadata_path

if TYPE_CHECKING:
from conda_build.config import Config

if TYPE_CHECKING:
from pytest_mock import MockerFixture

from conda_build.config import Config
from conda_build.metadata import MetaData

if TYPE_CHECKING:
from pytest_mock import MockerFixture

Expand Down Expand Up @@ -437,14 +428,3 @@ def test_tests_failed(testing_metadata: MetaData, tmp_path: Path):
broken_dir=tmp_path,
config=testing_metadata.config,
)


def test_handle_anaconda_upload(testing_config: Config, mocker: MockerFixture):
mocker.patch(
"conda_build.os_utils.external.find_executable",
return_value=None,
)
testing_config.anaconda_upload = True

with pytest.raises(CondaBuildUserError):
build.handle_anaconda_upload((), testing_config)

0 comments on commit 28df04b

Please sign in to comment.