@@ -267,6 +267,7 @@ def testCoreIndexData_IndexHeadingReferences():
267267 head = IndexHeading (cache , "T0001" )
268268
269269 # Add some references
270+ head .setTag ("Scene" )
270271 head .addReference ("Jane" , "@pov" )
271272 head .addReference ("Jane" , "@char" )
272273 head .addReference ("John" , "@char" )
@@ -290,6 +291,7 @@ def testCoreIndexData_IndexHeadingReferences():
290291 }
291292
292293 # Set names
294+ cache .tags .add ("Scene" , "Scene" , "0000000000000" , "T00001" , "NOVEL" )
293295 cache .tags .add ("Jane" , "Jane" , "0000000000000" , "T00001" , "CHARACTER" )
294296 cache .tags .add ("John" , "John" , "0000000000000" , "T00001" , "CHARACTER" )
295297 cache .tags .add ("Main" , "Main" , "0000000000000" , "T00001" , "PLOT" )
@@ -301,7 +303,7 @@ def testCoreIndexData_IndexHeadingReferences():
301303 "@plot" : ["Main" ],
302304 "@object" : ["Gun" ],
303305 "@story" : [],
304- "@tag" : [],
306+ "@tag" : ["Scene" ],
305307 "@focus" : [],
306308 "@custom" : [],
307309 "@time" : [],
@@ -316,7 +318,7 @@ def testCoreIndexData_IndexHeadingReferences():
316318 assert head .getReferencesByKeyword ("@plot" ) == ["Main" ]
317319 assert head .getReferencesByKeyword ("@object" ) == ["Gun" ]
318320 assert head .getReferencesByKeyword ("@story" ) == []
319- assert head .getReferencesByKeyword ("@tag" ) == []
321+ assert head .getReferencesByKeyword ("@tag" ) == ["Scene" ]
320322 assert head .getReferencesByKeyword ("@focus" ) == []
321323 assert head .getReferencesByKeyword ("@custom" ) == []
322324 assert head .getReferencesByKeyword ("@time" ) == []
0 commit comments