- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 66 for testapp (0.06 seconds)
-
tests/test_default_response_class.py
client = TestClient(app) orjson_type = "application/x-orjson" text_type = "text/plain; charset=utf-8" html_type = "text/html; charset=utf-8" override_type = "application/x-override" def test_app(): with client: response = client.get("/") assert response.json() == {"msg": "Hello World"} assert response.headers["content-type"] == orjson_type def test_app_override():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 20:49:20 GMT 2020 - 5.2K bytes - Click Count (0) -
tensorflow/c/eager/gradient_checker_test.cc
} AbstractContextPtr ctx_; public: bool UseMlir() const { return strcmp(std::get<0>(GetParam()), "mlir") == 0; } bool UseFunction() const { return std::get<2>(GetParam()); } }; TEST_P(GradientCheckerTest, TestMatMul) { float A_vals[] = {1.0f, 2.0f, 3.0f, 4.0f}; int64_t A_dims[] = {2, 2}; AbstractTensorHandlePtr A; { AbstractTensorHandle* A_raw;
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 6.5K bytes - Click Count (0) -
docs/pt/docs/tutorial/testing.md
# Testando { #testing } Graças ao [Starlette](https://www.starlette.dev/testclient/), testar aplicações **FastAPI** é fácil e agradável. Ele é baseado no [HTTPX](https://www.python-httpx.org), que por sua vez é projetado com base em Requests, por isso é muito familiar e intuitivo. Com ele, você pode usar o [pytest](https://docs.pytest.org/) diretamente com **FastAPI**. ## Usando `TestClient` { #using-testclient } /// info | InformaçãoCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 6.1K bytes - Click Count (0) -
cmd/encryption-v1_test.go
UserDefined: udMap(false), } } testSP := []struct { decSz int64 oi ObjectInfo }{ {0, mkSPObj(0)}, {1, mkSPObj(1)}, {pkgSz - 1, mkSPObj(pkgSz - 1)}, {pkgSz, mkSPObj(pkgSz)}, {2*pkgSz - 1, mkSPObj(2*pkgSz - 1)}, {minPartSz, mkSPObj(minPartSz)}, {maxPartSz, mkSPObj(maxPartSz)}, } for i, test := range testSP { { // nil range
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 19.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java
import junit.framework.TestCase; import org.jspecify.annotations.NullMarked; /** Tests for {@code CollectSpliterators}. */ @GwtCompatible @NullMarked public class CollectSpliteratorsTest extends TestCase { public void testMap() { SpliteratorTester.of( () -> CollectSpliterators.map( Arrays.spliterator(new String[] {"a", "b", "c", "d", "e"}), Ascii::toUpperCase))Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.1K bytes - Click Count (0) -
src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java
assertThat(hoge.getStaticFieldValue(), is((Object) "hoge")); } /** * @throws Exception */ @Test public void testAaa() throws Exception { final BeanDesc beanDesc = new BeanDescImpl(MyBean.class); final FieldDesc aaa = beanDesc.getFieldDesc("aaa"); assertThat(aaa.getBeanDesc(), is(sameInstance(beanDesc)));
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 5K bytes - Click Count (0) -
docs/pt/docs/advanced/websockets.md
{* ../../docs_src/websockets_/tutorial003_py310.py hl[79:81] *} Para testar: * Abra o aplicativo com várias abas do navegador. * Escreva mensagens a partir delas. * Então feche uma das abas.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 5.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/ConverterTest.java
assertEquals(converter, converter.reverse().reverse()); } // We need to test that apply() does in fact behave like convert(). @SuppressWarnings("InlineMeInliner") public void testApply() { assertEquals(LONG_VAL, STR_TO_LONG.apply(STR_VAL)); } private static class StringWrapper { private final String value; StringWrapper(String value) { this.value = value;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 8.3K bytes - Click Count (0) -
docs/pt/docs/history-design-future.md
Pela última [Pesquisa do Desenvolvedor Python](https://www.jetbrains.com/research/python-developers-survey-2018/#development-tools), isso cobre cerca de 80% dos usuários. Isso significa que o **FastAPI** foi testado especificamente com os editores usados por 80% dos desenvolvedores Python. Como a maioria dos outros editores tendem a funcionar de forma similar, todos os seus benefícios devem funcionar para virtualmente todos os editores.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 4.4K bytes - Click Count (0) -
cmd/utils_test.go
keyvalues := restQueries(test.keys...) for j := range keyvalues { if keyvalues[j] != test.keyvalues[j] { t.Fatalf("test %d: keyvalues[%d] does not match", i+1, j) } } } } func TestLCP(t *testing.T) { testCases := []struct { prefixes []string commonPrefix string }{ {[]string{"", ""}, ""}, {[]string{"a", "b"}, ""}, {[]string{"a", "a"}, "a"}, {[]string{"a/", "a/"}, "a/"},
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 10.2K bytes - Click Count (0)