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

Mark some tests with pytest network marker to skip them when the tests are running without internet access #8741

Closed
wants to merge 1 commit into from
Closed
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
1 change: 1 addition & 0 deletions tests/installation/test_chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def setup(mocker: MockerFixture, pool: RepositoryPool) -> None:
mocker.patch.object(Factory, "create_pool", return_value=pool)


@pytest.mark.network
def test_isolated_env_install_success(pool: RepositoryPool) -> None:
with ephemeral_environment(Path(sys.executable)) as venv:
env = IsolatedEnv(venv, pool)
Expand Down
1 change: 1 addition & 0 deletions tests/installation/test_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ def test_executor_should_write_pep610_url_references_for_wheel_files(
assert url.exists(), "source file should not be deleted"


@pytest.mark.network
def test_executor_should_write_pep610_url_references_for_non_wheel_files(
tmp_venv: VirtualEnv,
pool: RepositoryPool,
Expand Down