- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 54 for get_model (0.15 seconds)
-
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/SimpleProblemCollector.java
private List<String> fatals = new ArrayList<>(); public SimpleProblemCollector() {} public SimpleProblemCollector(Model model) { this.model = model; } public Model getModel() { return model; } public List<String> getWarnings() { return warnings; } public List<String> getErrors() { return errors; }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.4K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingException.java
return result; } /** * Gets the model that could not be built properly. * * @return The erroneous model or {@code null} if not available. */ public Model getModel() { if (result == null) { return null; } if (result.getEffectiveModel() != null) { return result.getEffectiveModel(); } return result.getRawModel();Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 5.4K bytes - Click Count (0) -
tests/test_tutorial/test_dependencies/test_tutorial008.py
@pytest.fixture( name="module", params=[ "tutorial008_py39", # Fails with `NameError: name 'DepA' is not defined` pytest.param("tutorial008_an_py39", marks=pytest.mark.xfail), ], ) def get_module(request: pytest.FixtureRequest): mod_name = f"docs_src.dependencies.{request.param}" mod = importlib.import_module(mod_name) return mod def test_get_db(module: ModuleType): app = FastAPI()
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 1.4K bytes - Click Count (0) -
tests/test_tutorial/test_python_types/test_tutorial009_tutorial009b.py
@pytest.fixture( name="module", params=[ pytest.param("tutorial009_py39"), pytest.param("tutorial009_py310", marks=needs_py310), pytest.param("tutorial009b_py39"), ], ) def get_module(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.python_types.{request.param}") return mod def test_say_hi(module: ModuleType): with patch("builtins.print") as mock_print:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 805 bytes - Click Count (0) -
tests/test_tutorial/test_python_types/test_tutorial009c.py
from ...utils import needs_py310 @pytest.fixture( name="module", params=[ pytest.param("tutorial009c_py39"), pytest.param("tutorial009c_py310", marks=needs_py310), ], ) def get_module(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.python_types.{request.param}") return mod def test_say_hi(module: ModuleType): with patch("builtins.print") as mock_print:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 777 bytes - Click Count (0) -
impl/maven-core/src/test/java/org/apache/maven/graph/DefaultGraphBuilderTest.java
Parent parent = new Parent(); parent.setGroupId(parentProject.getGroupId()); parent.setArtifactId(parentProject.getArtifactId()); project.getModel().setParent(parent); return project; } private MavenProject getMavenProject(String artifactId) { MavenProject mavenProject = new MavenProject(); mavenProject.setGroupId(GROUP_ID);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Dec 09 20:39:03 GMT 2025 - 28K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/prefix/DefaultPluginPrefixRequest.java
MavenProject project = session.getCurrentProject(); if (project != null) { setRepositories(project.getRemotePluginRepositories()); setPom(project.getModel()); } setPluginGroups(session.getPluginGroups()); } @Override public String getPrefix() { return prefix; } @OverrideCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 4K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java
}; } @Test void testGetModel() { ToolchainModel model = new ToolchainModel(); DefaultToolchain toolchain = newDefaultToolchain(model); assertEquals(model, toolchain.getModel()); } @Test void testGetType() { ToolchainModel model = new ToolchainModel(); DefaultToolchain toolchain = newDefaultToolchain(model, "TYPE");Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 11 12:33:57 GMT 2025 - 4.9K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/plugin/internal/DefaultPluginManager.java
public Plugin getPluginDefinitionForPrefix(String prefix, MavenSession session, MavenProject project) { PluginPrefixRequest request = new DefaultPluginPrefixRequest(prefix, session); request.setPom(project.getModel()); try { PluginPrefixResult result = pluginPrefixResolver.resolve(request); Plugin plugin = new Plugin(); plugin.setGroupId(result.getGroupId());
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 10.1K bytes - Click Count (0) -
tests/test_tutorial/test_cookie_params/test_tutorial001.py
params=[ "tutorial001_py39", pytest.param("tutorial001_py310", marks=needs_py310), "tutorial001_an_py39", pytest.param("tutorial001_an_py310", marks=needs_py310), ], ) def get_mod(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.cookie_params.{request.param}") return mod @pytest.mark.parametrize( "path,cookies,expected_status,expected_response", [Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 4K bytes - Click Count (0)