Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for exists (0.19 sec)

  1. configure.py

      else:
        default_sdk_path = '%s/Android/Sdk' % environ_cp['HOME']
    
      def valid_sdk_path(path):
        return (os.path.exists(path) and
                os.path.exists(os.path.join(path, 'platforms')) and
                os.path.exists(os.path.join(path, 'build-tools')))
    
      android_sdk_home_path = prompt_loop_or_load_from_env(
          environ_cp,
          var_name='ANDROID_SDK_HOME',
    Python
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  2. tests/test_param_in_path_and_dependency.py

    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    async def user_exists(user_id: int):
        return True
    
    
    @app.get("/users/{user_id}", dependencies=[Depends(user_exists)])
    async def read_users(user_id: int):
        pass
    
    
    client = TestClient(app)
    
    
    def test_read_users():
        response = client.get("/users/42")
        assert response.status_code == 200, response.text
    
    
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  3. docs_src/app_testing/app_b_an_py310/test_main.py

                "title": "The Foo ID Stealers",
                "description": "There goes my stealer",
            },
        )
        assert response.status_code == 400
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  4. docs_src/app_testing/app_b/main.py

        if x_token != fake_secret_token:
            raise HTTPException(status_code=400, detail="Invalid X-Token header")
        if item.id in fake_db:
            raise HTTPException(status_code=409, detail="Item already exists")
        fake_db[item.id] = item
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Tue Jan 09 14:44:08 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  5. docs_src/app_testing/app_b_an/test_main.py

                "title": "The Foo ID Stealers",
                "description": "There goes my stealer",
            },
        )
        assert response.status_code == 400
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  6. docs_src/app_testing/app_b_an_py39/test_main.py

                "title": "The Foo ID Stealers",
                "description": "There goes my stealer",
            },
        )
        assert response.status_code == 400
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  7. docs_src/app_testing/app_b_py310/test_main.py

                "title": "The Foo ID Stealers",
                "description": "There goes my stealer",
            },
        )
        assert response.status_code == 409
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/api_template_v1.__init__.py

      _kernel_dir = _os.path.join(_tf_dir, "core", "kernels")
      if _os.path.exists(_kernel_dir):
        _ll.load_library(_kernel_dir)
    
      # Load third party dynamic kernels.
      for _s in _site_packages_dirs:
        _plugin_dir = _os.path.join(_s, "tensorflow-plugins")
        if _os.path.exists(_plugin_dir):
          _ll.load_library(_plugin_dir)
          # Load Pluggable Device Library
    Python
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jan 23 02:14:00 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  9. docs_src/app_testing/app_b/test_main.py

                "title": "The Foo ID Stealers",
                "description": "There goes my stealer",
            },
        )
        assert response.status_code == 409
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  10. tensorflow/api_template.__init__.py

      _kernel_dir = _os.path.join(_tf_dir, "core", "kernels")
      if _os.path.exists(_kernel_dir):
        _ll.load_library(_kernel_dir)
    
      # Load third party dynamic kernels.
      for _s in _site_packages_dirs:
        _plugin_dir = _os.path.join(_s, "tensorflow-plugins")
        if _os.path.exists(_plugin_dir):
          _ll.load_library(_plugin_dir)
          # Load Pluggable Device Library
    Python
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 05 06:27:59 GMT 2024
    - 6.7K bytes
    - Viewed (3)
Back to top