- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for test_get_exception (0.18 sec)
-
tests/test_tutorial/test_handling_errors/test_tutorial003.py
client = TestClient(app) def test_get(): response = client.get("/unicorns/shinny") assert response.status_code == 200, response.text assert response.json() == {"unicorn_name": "shinny"} def test_get_exception(): response = client.get("/unicorns/yolo") assert response.status_code == 418, response.text assert response.json() == { "message": "Oops! yolo did something. There goes a rainbow..." }
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 3.2K bytes - Viewed (0) -
maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemTest.java
problem = new DefaultProblem(null, null, null, -1, Integer.MIN_VALUE, null); assertEquals(Integer.MIN_VALUE, problem.getColumnNumber()); } @Test void testGetException() { DefaultProblem problem = new DefaultProblem(null, null, null, -1, -1, null); assertNull(problem.getException()); Exception e = new Exception();
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Sat Apr 15 17:24:20 GMT 2023 - 4.9K bytes - Viewed (0)