File tree Expand file tree Collapse file tree
hello-tasks/backend/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# This `BUILD.bazel` file allows a `bazel` system (configured outside of this
22# repository) to use code in this directory and its subdirectories.
33
4- load ("@com_github_reboot_dev_mono //reboot/examples:rules.bzl" , "write_templated_source_file" )
4+ load ("//reboot/examples:rules.bzl" , "write_templated_source_file" )
55
66filegroup (
77 name = "everything" ,
Original file line number Diff line number Diff line change @@ -79,9 +79,11 @@ selecting an application directory you select the `.rbtrc` that will be used:
7979
8080<!-- MARKDOWN-AUTO-DOCS:START (CODE:src=./.tests/readme_test.sh&lines=24-24) -->
8181<!-- The below code snippet is automatically added from ./.tests/readme_test.sh -->
82+
8283``` sh
8384cd hello-constructors
8485```
86+
8587<!-- MARKDOWN-AUTO-DOCS:END -->
8688
8789#### Run the backend
Original file line number Diff line number Diff line change @@ -73,14 +73,6 @@ async def withdraw():
7373 async def test_send_welcome_email (self , mock_send_email ) -> None :
7474 await self .rbt .up (
7575 Application (servicers = [AccountServicer ]),
76- # Normally, `rbt.up()` runs the servicers in a separate process, to
77- # ensure that accidental use of blocking functions (an easy mistake
78- # to make) don't cause the test to lock up. However, in this test
79- # we're using a mock, which must be in the same process as the test
80- # or it won't work.
81- #
82- # We MUST therefore pass `in_process=True` for `@patch` to work.
83- in_process = True ,
8476 )
8577 context = self .rbt .create_external_context (name = f"test-{ self .id ()} " )
8678
Original file line number Diff line number Diff line change @@ -22,14 +22,6 @@ async def test_hello_tasks(self) -> None:
2222 hello_servicer .ADDITIONAL_SECS_UNTIL_ERASE = 0
2323 await self .rbt .up (
2424 Application (servicers = [HelloServicer ]),
25- # Normally, `rbt.up()` runs the servicers in a separate process, to
26- # ensure that accidental use of blocking functions (an easy mistake
27- # to make) doesn't cause the test to lock up. However, in this test
28- # we're updating constants used in a servicer, and the servicer must
29- # run in the same process as the test or that won't work.
30- #
31- # We MUST therefore pass `in_process=True`.
32- in_process = True ,
3325 )
3426
3527 context = self .rbt .create_external_context (name = f"test-{ self .id ()} " )
Original file line number Diff line number Diff line change 11[project ]
22requires-python = " >= 3.10"
33dependencies = [
4- " reboot==0.44.0 " ,
4+ " reboot==0.45.1 " ,
55]
66
77[tool .rye ]
88dev-dependencies = [
99 " mypy==1.18.1" ,
1010 " pytest>=7.4.2" ,
1111 " types-protobuf>=4.24.0.20240129" ,
12- " reboot==0.44.0 " ,
12+ " reboot==0.45.1 " ,
1313]
1414
1515# This project only uses `rye` to provide `python` and its dependencies, so
You can’t perform that action at this time.
0 commit comments