Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for test_Get (0.14 sec)

  1. tests/test_tutorial/test_body_updates/test_tutorial001.py

        client = TestClient(app)
        return client
    
    
    def test_get(client: TestClient):
        response = client.get("/items/baz")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Baz",
            "description": None,
            "price": 50.2,
            "tax": 10.5,
            "tags": [],
        }
    
    
    def test_put(client: TestClient):
        response = client.put(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_updates/test_tutorial001_py310.py

        return client
    
    
    @needs_py310
    def test_get(client: TestClient):
        response = client.get("/items/baz")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Baz",
            "description": None,
            "price": 50.2,
            "tax": 10.5,
            "tags": [],
        }
    
    
    @needs_py310
    def test_put(client: TestClient):
        response = client.put(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_body_updates/test_tutorial001_py39.py

        return client
    
    
    @needs_py39
    def test_get(client: TestClient):
        response = client.get("/items/baz")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "name": "Baz",
            "description": None,
            "price": 50.2,
            "tax": 10.5,
            "tags": [],
        }
    
    
    @needs_py39
    def test_put(client: TestClient):
        response = client.put(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  4. tests/test_annotated.py

            ("/multiple", 422, foo_is_missing),
            ("/multiple?foo=", 422, foo_is_short),
            ("/unrelated?foo=bar", 200, {"foo": "bar"}),
            ("/unrelated", 422, foo_is_missing),
        ],
    )
    def test_get(path, expected_status, expected_response):
        response = client.get(path)
        assert response.status_code == expected_status
        assert response.json() == expected_response
    
    
    def test_multiple_path():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. tests/test_sub_callbacks.py

        return {"msg": "Invoice received"}
    
    
    app.include_router(subrouter, callbacks=events_callback_router.routes)
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.post(
            "/invoices/", json={"id": "fooinvoice", "customer": "John", "total": 5.3}
        )
        assert response.status_code == 200, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/authoring-builds/other/test_kit.adoc

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    [[test_kit]]
    = Testing Build Logic with TestKit
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 05:36:09 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. src/flag/flag_test.go

    	Visit(func(f *Flag) { flagNames = append(flagNames, f.Name) })
    	if !slices.IsSorted(flagNames) {
    		t.Errorf("flag names not sorted: %v", flagNames)
    	}
    }
    
    func TestGet(t *testing.T) {
    	ResetForTesting(nil)
    	Bool("test_bool", true, "bool value")
    	Int("test_int", 1, "int value")
    	Int64("test_int64", 2, "int64 value")
    	Uint("test_uint", 3, "uint value")
    	Uint64("test_uint64", 4, "uint64 value")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/authoring-builds/plugins/testing_gradle_plugins.adoc

    |<<unit-tests,Unit tests>>               |Any JVM-based test framework
    |<<integration-tests,Integration tests>> |Any JVM-based test framework
    |<<functional-tests,Functional tests>>   |Any JVM-based test framework and <<test_kit.adoc#test_kit,Gradle TestKit>>
    |======================
    
    [[manual-tests]]
    == Setting up manual tests
    
    The <<composite_builds.adoc#composite_builds,composite builds>> feature of Gradle makes it easy to test a plugin manually.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 22:49:20 UTC 2024
    - 16K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-param-util.h

      // UnitTest has a guard to prevent from calling this method more then once.
      virtual void RegisterTests() {
        for (typename TestInfoContainer::iterator test_it = tests_.begin();
             test_it != tests_.end(); ++test_it) {
          linked_ptr<TestInfo> test_info = *test_it;
          for (typename InstantiationContainer::iterator gen_it =
                   instantiations_.begin(); gen_it != instantiations_.end();
                   ++gen_it) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  10. pkg/registry/batch/job/storage/storage_test.go

    					t.Fatalf("expected delete option warning but did not get one")
    				}
    			}
    		})
    	}
    }
    
    func TestGet(t *testing.T) {
    	storage, server := newStorage(t)
    	defer server.Terminate(t)
    	defer storage.Job.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Job.Store)
    	test.TestGet(validNewJob())
    }
    
    func TestList(t *testing.T) {
    	storage, server := newStorage(t)
    	defer server.Terminate(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top