- Sort Score
- Num 10 results
- Language All
Results 731 - 740 of 1,332 for Assert (0.14 seconds)
-
docs/zh-hant/docs/tutorial/testing.md
```console $ pip install httpx ``` /// 匯入 `TestClient`。 建立一個 `TestClient`,把你的 **FastAPI** 應用傳入其中。 建立名稱以 `test_` 開頭的函式(這是 `pytest` 的慣例)。 像使用 `httpx` 一樣使用 `TestClient` 物件。 用簡單的 `assert` 敘述搭配標準的 Python 運算式來檢查(同樣是 `pytest` 的標準用法)。 {* ../../docs_src/app_testing/tutorial001_py310.py hl[2,12,15:18] *} /// tip 注意測試函式是一般的 `def`,不是 `async def`。 而且對 client 的呼叫也都是一般呼叫,不需要使用 `await`。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 5.6K bytes - Click Count (0) -
docs/zh/docs/tutorial/testing.md
$ pip install httpx ``` /// 导入 `TestClient`。 通过传入你的**FastAPI**应用创建一个 `TestClient` 。 创建名字以 `test_` 开头的函数(这是标准的 `pytest` 约定)。 像使用 `httpx` 那样使用 `TestClient` 对象。 为你需要检查的地方用标准的Python表达式写个简单的 `assert` 语句(重申,标准的`pytest`)。 {* ../../docs_src/app_testing/tutorial001_py310.py hl[2,12,15:18] *} /// tip | 提示 注意测试函数是普通的 `def`,不是 `async def`。 还有client的调用也是普通的调用,不是用 `await`。 这让你可以直接使用 `pytest` 而不会遇到麻烦。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 5.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ResourcesTest.java
import static com.google.common.truth.Truth.assertThat; import static java.nio.charset.StandardCharsets.US_ASCII; import static java.nio.charset.StandardCharsets.UTF_8; import static org.junit.Assert.assertThrows; import com.google.common.collect.ImmutableList; import com.google.common.testing.NullPointerTester; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.IOException;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 6.9K bytes - Click Count (0) -
docs/uk/docs/tutorial/testing.md
Створюйте функції з іменами, що починаються з `test_` (це стандартна угода для `pytest`). Використовуйте об'єкт `TestClient` так само як і `httpx`. Записуйте прості `assert`-вирази зі стандартними виразами Python, які потрібно перевірити (це також стандарт для `pytest`). {* ../../docs_src/app_testing/tutorial001_py310.py hl[2,12,15:18] *} /// tip | ПорадаCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 8.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/TestThread.java
assertThat(responseQueue.poll()).isNull(); } /** * Asserts that a prior call that had caused this thread to block or wait has since returned * normally. */ public void assertPriorCallReturns(@Nullable String methodName) throws Exception { assertThat(getResponse(methodName).getResult()).isNull(); } /** * Asserts that a prior call that had caused this thread to block or wait has since returned the
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.5K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java
import static com.google.common.truth.Truth.assertThat; import static java.lang.annotation.RetentionPolicy.RUNTIME; import static org.junit.Assert.assertThrows; import com.google.common.collect.ImmutableSet; import com.google.common.collect.testing.features.FeatureUtilTest.ExampleFeature.NotTesterAnnotation;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 11.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java
package com.google.common.collect; import static com.google.common.collect.BoundType.OPEN; import static com.google.common.collect.Maps.immutableEntry; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertThrows; import com.google.common.annotations.GwtIncompatible; import com.google.common.testing.SerializableTester; import java.util.Map.Entry; import java.util.NoSuchElementException;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 9.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTest.java
import static java.lang.Byte.toUnsignedInt; import static java.lang.Math.max; import static java.lang.Math.min; import static java.nio.charset.StandardCharsets.US_ASCII; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertThrows; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Iterables; import java.io.ByteArrayOutputStream;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 15.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java
import static java.math.RoundingMode.HALF_EVEN; import static java.math.RoundingMode.HALF_UP; import static java.math.RoundingMode.UNNECESSARY; import static java.math.RoundingMode.UP; import static org.junit.Assert.assertThrows; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible; import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.math.BigDecimal;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 11K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/entity/SuggestItemMergerTest.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.suggest.entity; import static org.junit.Assert.*; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import org.junit.Test; /** * Unit tests for SuggestItemMerger. */ public class SuggestItemMergerTest {Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 6K bytes - Click Count (0)