Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_query_nonregexquery (0.26 sec)

  1. tests/test_regex_deprecated_body.py

        client = get_client()
        response = client.post("/items/", data={"q": "fixedquery"})
        assert response.status_code == 200
        assert response.json() == "Hello fixedquery"
    
    
    @needs_py310
    def test_query_nonregexquery():
        client = get_client()
        response = client.post("/items/", data={"q": "nonregexquery"})
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top