- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 84 for test_main (0.07 sec)
-
docs/zh/docs/advanced/settings.md
{!> ../../docs_src/settings/app02/main.py!} ``` //// ### 设置和测试 然后,在测试期间,通过创建 `get_settings` 的依赖项覆盖,很容易提供一个不同的设置对象: ```Python hl_lines="9-10 13 21" {!../../docs_src/settings/app02/test_main.py!} ``` 在依赖项覆盖中,我们在创建新的 `Settings` 对象时为 `admin_email` 设置了一个新值,然后返回该新对象。 然后,我们可以测试它是否被使用。 ## 从 `.env` 文件中读取设置 如果您有许多可能经常更改的设置,可能在不同的环境中,将它们放在一个文件中,然后从该文件中读取它们,就像它们是环境变量一样,可能非常有用。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.8K bytes - Viewed (0) -
docs/pt/docs/advanced/settings.md
Então seria muito fácil fornecer uma configuração diferente durante a execução dos testes sobrescrevendo a dependência de `get_settings`: ```Python hl_lines="9-10 13 21" {!../../docs_src/settings/app02/test_main.py!} ``` Na sobrescrita da dependência, definimos um novo valor para `admin_email` quando instanciamos um novo objeto `Settings`, e então retornamos esse novo objeto.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 17K bytes - Viewed (0) -
src/test/java/jcifs/tests/BaseCIFSTest.java
return getContext().withAnonymousCredentials(); } protected String getTestDomain () { String testDomain = getProperties().get(TestProperties.TEST_DOMAIN); Assume.assumeNotNull(testDomain); return testDomain; } protected String getTestServer () { String testServer = getProperties().get(TestProperties.TEST_SERVER);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 8.1K bytes - Viewed (0) -
src/main/resources/mail/testmail.dfmail
Shinsuke Sugaya <******@****.***> 1455285178 +0900
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Feb 12 13:52:58 UTC 2016 - 146 bytes - Viewed (0) -
src/cmd/addr2line/addr2line_test.go
package main import ( "bufio" "bytes" "internal/testenv" "os" "path/filepath" "runtime" "strings" "testing" ) // TestMain executes the test binary as the addr2line command if // GO_ADDR2LINETEST_IS_ADDR2LINE is set, and runs the tests otherwise. func TestMain(m *testing.M) { if os.Getenv("GO_ADDR2LINETEST_IS_ADDR2LINE") != "" { main() os.Exit(0) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 06 13:23:48 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/BUILD
"//tensorflow/core:test_main", "//tensorflow/core/common_runtime/eager:context", "//tensorflow/core/platform:status", "@com_google_absl//absl/status", "@com_google_googletest//:gtest_main", ], ) cc_library( name = "parallel_device_testlib", testonly = 1, srcs = ["parallel_device_testlib.cc"], hdrs = ["parallel_device_testlib.h"], deps = [
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Oct 21 04:14:14 UTC 2024 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/tests/DfsTest.java
context = withTestNTLMCredentials(context); DfsResolver dfs = context.getDfs(); String testDomain = getTestDomain(); assertTrue(dfs.isTrustedDomain(context, testDomain)); assertTrue(dfs.isTrustedDomain(context, testDomain.toLowerCase(Locale.ROOT))); String shortDom = getProperties().get(TestProperties.TEST_DOMAIN_SHORT); if ( shortDom != null ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Mar 01 09:46:04 UTC 2020 - 13.5K bytes - Viewed (0) -
internal/dsync/dsync_test.go
testDrwMutexUnlockCallTimeout = 250 * time.Millisecond testDrwMutexForceUnlockCallTimeout = 250 * time.Millisecond testDrwMutexRefreshInterval = 100 * time.Millisecond ) // TestMain initializes the testing framework func TestMain(m *testing.M) { startLockServers() // Initialize locker clients for dsync. var clnts []NetLocker for i := 0; i < len(nodes); i++ { clnts = append(clnts, newClient(nodes[i].URL)) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jun 19 14:35:19 UTC 2024 - 11.1K bytes - Viewed (0) -
.gitignore
.DS_Store *.[56789ao] *.a[56789o] *.so *.pyc ._* .nfs.* [56789a].out *~ *.orig *.rej *.exe .*.swp core *.cgo*.go *.cgo*.c _cgo_* _obj _test _testmain.go /VERSION.cache /bin/ /build.out /doc/articles/wiki/*.bin /goinstall.log /last-change /misc/cgo/life/run.out /misc/cgo/stdio/run.out /misc/cgo/testso/main /pkg/ /src/*.*/ /src/cmd/cgo/zdefaultcc.go /src/cmd/dist/dist
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Jul 23 19:05:35 UTC 2024 - 958 bytes - Viewed (0) -
tests/test_response_change_status_code.py
response.status_code = 201 async def parent_dep(result=Depends(response_status_setter)): return result @app.get("/", dependencies=[Depends(parent_dep)]) async def get_main(): return {"msg": "Hello World"} client = TestClient(app) def test_dependency_set_status_code(): response = client.get("/") assert response.status_code == 201, response.text
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Apr 08 04:37:38 UTC 2020 - 589 bytes - Viewed (0)