Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for test_sub (0.04 sec)

  1. tests/test_tutorial/test_sub_applications/test_tutorial001.py

    
    def test_openapi_schema_sub():
        response = client.get("/subapi/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == openapi_schema_sub
    
    
    def test_sub():
        response = client.get("/subapi/sub")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. tests/test_dependency_yield_scope_websockets.py

            data = websocket.receive_json()
        assert data["func_is_open"] is True
        assert data["req_is_open"] is True
        assert global_state["session_closed"] is True
    
    
    def test_sub() -> None:
        global_context.set({})
        global_state = global_context.get()
        with client.websocket_connect("/sub") as websocket:
            data = websocket.receive_json()
        assert data["named_session_open"] is True
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. tests/test_dependency_yield_scope.py

        response = client.get("/two-scopes")
        assert response.status_code == 200
        data = response.json()
        assert data["func_is_open"] is False
        assert data["req_is_open"] is True
    
    
    def test_sub() -> None:
        response = client.get("/sub")
        assert response.status_code == 200
        data = response.json()
        assert data["named_session_open"] is True
        assert data["session_open"] is True
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            // Test parameters wire format writing
            trans2FindNext2 = new Trans2FindNext2(config, TEST_SID, TEST_RESUME_KEY, TEST_FILENAME, TEST_BATCH_COUNT, TEST_BATCH_SIZE);
    
            byte[] buffer = new byte[256];
            int written = trans2FindNext2.writeParametersWireFormat(buffer, 0);
    
            // Verify sid (2 bytes)
            assertEquals(TEST_SID, SMBUtil.readInt2(buffer, 0));
    
            // Verify maxItems (2 bytes)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComFindClose2Test.java

    class SmbComFindClose2Test {
    
        @Mock
        private Configuration mockConfig;
    
        private SmbComFindClose2 instance;
        private final int TEST_SID = 0x1234; // 4660 decimal
    
        @BeforeEach
        void setUp() {
            instance = new SmbComFindClose2(mockConfig, TEST_SID);
        }
    
        @Test
        void testConstructorAndToString() {
            String s = instance.toString();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_body_updates/test_tutorial001.py

        assert response.json() == {
            "name": "Baz",
            "description": None,
            "price": 50.2,
            "tax": 10.5,
            "tags": [],
        }
    
    
    def test_put(client: TestClient):
        response = client.put(
            "/items/bar", json={"name": "Barz", "price": 3, "description": None}
        )
        assert response.json() == {
            "name": "Barz",
            "description": None,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_encoder/test_tutorial001.py

        return module
    
    
    @pytest.fixture(name="client")
    def get_client(mod: ModuleType):
        client = TestClient(mod.app)
        return client
    
    
    def test_put(client: TestClient, mod: ModuleType):
        fake_db = mod.fake_db
    
        response = client.put(
            "/items/123",
            json={
                "title": "Foo",
                "timestamp": "2023-01-01T12:00:00",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

          map.put(new Object(), i);
        }
        assertEquals(ITERATIONS, map.size());
    
        map.clear();
        assertEquals(0, map.size());
        assertTrue(map.isEmpty());
      }
    
      public void testSum() {
        AtomicLongMap<Object> map = AtomicLongMap.create();
        long sum = 0;
        for (int i = 0; i < ITERATIONS; i++) {
          map.put(new Object(), i);
          sum += i;
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_bigger_applications/test_main.py

        response = client.put("/items/foo", headers={"X-Token": "invalid"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Token header invalid"}
    
    
    def test_put(client: TestClient):
        response = client.put(
            "/items/plumbus?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 21.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

            .of(LONG_MANY_VALUES_MEAN);
        assertThat(longManyValuesAccumulatorByAddAllVarargs.mean())
            .isWithin(ALLOWED_ERROR * LONG_MANY_VALUES_MEAN)
            .of(LONG_MANY_VALUES_MEAN);
      }
    
      public void testSum() {
        assertThat(emptyAccumulator.sum()).isEqualTo(0.0);
        assertThat(emptyAccumulatorByAddAllEmptyIterable.sum()).isEqualTo(0.0);
        assertThat(emptyAccumulatorByAddAllEmptyStats.sum()).isEqualTo(0.0);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 36.9K bytes
    - Viewed (0)
Back to top