Fix unit test for the new css_media and js_media context data.

Review Request #14594 — Created Sept. 6, 2025 and updated

Information

Review Board
release-7.1.x

Reviewers

During the development of the change to include css_media and js_media
in the data for the files in the diff viewer for binary files which use
review UIs, these keys got moved from the diffviewer code into reviews,
which creates its own list of files. The file list created by the
reviews code goes into a separate key in the context, and the unit test
for these wasn't updated, causing the test to fail. This change fixes
that.

Ran unit tests.

Summary ID
Fix unit test for the new css_media and js_media context data.
During the development of the change to include css_media and js_media in the data for the files in the diff viewer for binary files which use review UIs, these keys got moved from the diffviewer code into reviews, which creates its own list of files. The file list created by the reviews code goes into a separate key in the context, and the unit test for these wasn't updated, causing the test to fail. This change fixes that. Testing Done: Ran unit tests.
spvzvltxlwxtqxrlxytrlysnrmxztxvl
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
chipx86
  1. Ship It!
  2. 
      
maubin
  1. Woops.

  2.