Skip to content

Commit 1694af8

Browse files
Songhao Jiafacebook-github-bot
authored andcommitted
update error message
Summary: as title Differential Revision: D49663916 fbshipit-source-id: f9c0252a82427d519b69f1d5e70f59c4a354521f
1 parent ee7ae7d commit 1694af8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

bundled_program/core.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,22 +140,22 @@ def assert_valid_bundle(
140140
bp_plan_id = 0
141141

142142
method_name_of_program = {e.name for e in program.execution_plan}
143-
method_name_of_test_suites = {
143+
method_name_of_bundled_config = {
144144
t.method_name for t in bundled_config.execution_plan_tests
145145
}
146146

147-
assert method_name_of_test_suites.issubset(
147+
assert method_name_of_bundled_config.issubset(
148148
method_name_of_program
149-
), f"All methods in method_test_suites should be found in program.execution_plan, \
150-
but {str(method_name_of_test_suites - method_name_of_program)} does not include."
149+
), f"All method names in bundled config should be found in program.execution_plan, \
150+
but {str(method_name_of_bundled_config - method_name_of_program)} does not include."
151151

152-
# check if method_tesdt_suites has been sorted in ascending alphabetical order of method name.
152+
# check if has been sorted in ascending alphabetical order of method name.
153153
for bp_plan_id in range(1, len(bundled_config.execution_plan_tests)):
154154
assert (
155155
bundled_config.execution_plan_tests[bp_plan_id - 1].method_name
156156
<= bundled_config.execution_plan_tests[bp_plan_id].method_name
157-
), f"The method name of test suite should be sorted in ascending alphabetical \
158-
order of method name, but {bp_plan_id-1}-th and {bp_plan_id}-th method_test_suite aren't."
157+
), f"The method name of BundledConfig should be sorted in ascending alphabetical \
158+
order of method name, but {bp_plan_id-1}-th and {bp_plan_id}-th methods aren't."
159159

160160
# Check if the inputs' type meet Program's requirement
161161
while bp_plan_id < len(bundled_config.execution_plan_tests):

0 commit comments

Comments
 (0)