- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for AssertionError (0.05 seconds)
-
tests/test_invalid_sequence_param.py
def test_invalid_sequence(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str @app.get("/items/") def read_items(q: list[Item] = Query(default=None)): pass # pragma: no cover def test_invalid_tuple(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.2K bytes - Click Count (0) -
tests/test_invalid_path_param.py
def test_invalid_sequence(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel): title: str @app.get("/items/{id}") def read_items(id: list[Item]): pass # pragma: no cover def test_invalid_tuple(): with pytest.raises(AssertionError): app = FastAPI() class Item(BaseModel):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.6K bytes - Click Count (0) -
tests/test_ambiguous_params.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 2K bytes - Click Count (1) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java
// then relative path calculation will success during build from disk but fail when calculated from repo testInheritance("tricky-flat-directory-urls", false); AssertionError afe = assertThrows( AssertionError.class, () -> testInheritance("tricky-flat-directory-urls", true), "should have failed since module reference == directory name != artifactId");Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 8.2K bytes - Click Count (0) -
build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-jar.gradle.kts
val dependency = when (val result = queue.removeFirst()) { is ResolvedDependencyResult -> result is UnresolvedDependencyResult -> throw result.failure else -> throw AssertionError("Unknown dependency type: $result") } if (dependency.isConstraint) { continue } val to = dependency.resolvedVariant
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri May 16 18:26:52 GMT 2025 - 4.4K bytes - Click Count (0)