- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 478 for fixture (0.19 seconds)
-
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/Fixture.java
/** * Any object that can produce an accompanying stop task, meant to tear down * a previously instantiated service. */ public interface Fixture { /** A task which will stop this fixture. This should be used as a finalizedBy for any tasks that use the fixture. */ Object getStopTask();Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 705 bytes - Click Count (0) -
build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/AntFixtureStop.groovy
@Internal AntFixture fixture @Internal FileSystemOperations fileSystemOperations @Inject AntFixtureStop(FileSystemOperations fileSystemOperations) { super(fileSystemOperations) this.fileSystemOperations = fileSystemOperations } void setFixture(AntFixture fixture) { assert this.fixture == null this.fixture = fixture;Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 1.6K bytes - Click Count (0) -
build-tools-internal/src/main/groovy/elasticsearch.formatting.gradle
':plugins:repository-hdfs:hadoop-common', ':plugins:repository-s3', ':plugins:store-smb', ':plugins:transport-nio', ':qa:die-with-dignity', ':rest-api-spec', ':test:fixtures:geoip-fixture', ':test:fixtures:krb5kdc-fixture', ':test:fixtures:old-elasticsearch', ':test:framework', ':test:logger-usage', ':x-pack:license-tools', ':x-pack:plugin', ':x-pack:plugin:async-search',
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Thu Sep 09 18:53:35 GMT 2021 - 9.1K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/testfixtures/TestFixtureExtension.java
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 4.4K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/ElasticsearchJavaBasePlugin.java
return; } // fail on any conflicting dependency versions project.getConfigurations().all(configuration -> { if (configuration.getName().endsWith("Fixture")) { // just a self contained test-fixture configuration, likely transitive and hellacious return; } configuration.resolutionStrategy(ResolutionStrategy::failOnVersionConflict); });Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Sep 27 16:04:42 GMT 2021 - 8K bytes - Click Count (0) -
BUILDING.md
#### Using test fixtures Sometimes we want to share test fixtures to setup the code under test across multiple projects. There are basically two ways doing so. Ideally we would use the build-in [java-test-fixtures](https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures) gradle plugin. This plugin relies on having a separate sourceSet for the test fixtures code.
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Thu Sep 23 07:45:59 GMT 2021 - 6.7K bytes - Click Count (0) -
scripts/tests/test_translation_fixer/conftest.py
if item_path.is_relative_to(THIS_DIR): item.add_marker(skip_on_windows) @pytest.fixture(name="runner") def get_runner(): runner = CliRunner() with runner.isolated_filesystem(): yield runner @pytest.fixture(name="root_dir") def prepare_paths(runner): docs_dir = Path("docs") en_docs_dir = docs_dir / "en" / "docs"
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 25 10:37:59 GMT 2026 - 1.3K bytes - Click Count (0) -
tests/test_file_and_form_order_issue_9116.py
files: Annotated[list[bytes], File()], ): return {"file_contents": files, "city": city} client = TestClient(app) @pytest.fixture def tmp_file_1(tmp_path: Path) -> Path: f = tmp_path / "example1.txt" f.write_text("foo") return f @pytest.fixture def tmp_file_2(tmp_path: Path) -> Path: f = tmp_path / "example2.txt" f.write_text("bar") return f
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2.3K bytes - Click Count (0) -
tests/test_security_scopes.py
from typing import Annotated import pytest from fastapi import Depends, FastAPI, Security from fastapi.testclient import TestClient @pytest.fixture(name="call_counter") def call_counter_fixture(): return {"count": 0} @pytest.fixture(name="app") def app_fixture(call_counter: dict[str, int]): def get_db(): call_counter["count"] += 1 return f"db_{call_counter['count']}"
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1006 bytes - Click Count (0) -
tests/test_security_scopes_sub_dependency.py
from fastapi.security import SecurityScopes from fastapi.testclient import TestClient @pytest.fixture(name="call_counts") def call_counts_fixture(): return { "get_db_session": 0, "get_current_user": 0, "get_user_me": 0, "get_user_items": 0, } @pytest.fixture(name="app") def app_fixture(call_counts: dict[str, int]): def get_db_session():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2.9K bytes - Click Count (0)