@@ -68,7 +68,7 @@ def test_load_patch_and_write(self) -> None:
6868
6969# Fake resource files to use when testing alignment-patching.
7070SCHEMA_FILES : Dict [str , bytes ] = {
71- "schema .fbs" : b"\n " .join (
71+ "program .fbs" : b"\n " .join (
7272 [
7373 b"table Program {" ,
7474 # Space after the colon.
@@ -122,7 +122,7 @@ def call_prepare_schema(
122122 def test_unmodified (self ) -> None :
123123 with tempfile .TemporaryDirectory () as out_dir :
124124 info : _SchemaInfo = self .call_prepare_schema (SCHEMA_FILES , out_dir )
125- self .assertEqual (info .root_path , os .path .join (out_dir , "schema .fbs" ))
125+ self .assertEqual (info .root_path , os .path .join (out_dir , "program .fbs" ))
126126 # Files should not have been modified.
127127 for fname in SCHEMA_FILES .keys ():
128128 self .assertEqual (read_file (out_dir , fname ), SCHEMA_FILES [fname ])
@@ -134,10 +134,10 @@ def test_update_tensor_alignment(self) -> None:
134134 info : _SchemaInfo = self .call_prepare_schema (
135135 SCHEMA_FILES , out_dir , constant_tensor_alignment = 128
136136 )
137- self .assertEqual (info .root_path , os .path .join (out_dir , "schema .fbs" ))
137+ self .assertEqual (info .root_path , os .path .join (out_dir , "program .fbs" ))
138138 # Only the tensor alignment lines should have been modified.
139139 self .assertEqual (
140- read_file (out_dir , "schema .fbs" ),
140+ read_file (out_dir , "program .fbs" ),
141141 b"\n " .join (
142142 [
143143 b"table Program {" ,
@@ -170,10 +170,10 @@ def test_update_delegate_alignment(self) -> None:
170170 info : _SchemaInfo = self .call_prepare_schema (
171171 SCHEMA_FILES , out_dir , delegate_alignment = 256
172172 )
173- self .assertEqual (info .root_path , os .path .join (out_dir , "schema .fbs" ))
173+ self .assertEqual (info .root_path , os .path .join (out_dir , "program .fbs" ))
174174 # Only the delegate alignment lines should have been modified.
175175 self .assertEqual (
176- read_file (out_dir , "schema .fbs" ),
176+ read_file (out_dir , "program .fbs" ),
177177 b"\n " .join (
178178 [
179179 b"table Program {" ,
@@ -209,10 +209,10 @@ def test_update_tensor_and_delegate_alignment(self) -> None:
209209 constant_tensor_alignment = 1 ,
210210 delegate_alignment = 2 ,
211211 )
212- self .assertEqual (info .root_path , os .path .join (out_dir , "schema .fbs" ))
212+ self .assertEqual (info .root_path , os .path .join (out_dir , "program .fbs" ))
213213 # Only the delegate alignment lines should have been modified.
214214 self .assertEqual (
215- read_file (out_dir , "schema .fbs" ),
215+ read_file (out_dir , "program .fbs" ),
216216 b"\n " .join (
217217 [
218218 b"table Program {" ,
0 commit comments