Update tests for DiffParser kwargs change.

Review Request #14287 — Created Jan. 7, 2025 and updated

Information

Review Board
release-7.x

Reviewers

A recent(ish) change made it so the args to DiffParser and friends are
keyword-only. This was causing a bunch of warnings to pop up when
running the tests.

Ran unit tests and saw no relevant warnings.

Summary ID
Update tests for DiffParser kwargs change.
A recent(ish) change made it so the args to DiffParser and friends are keyword-only. This was causing a bunch of warnings to pop up when running the tests. Testing Done: Ran unit tests and saw no relevant warnings.
6a4a57ac566cb1097415a3edd84ac352571d2cf6
Description From Last Updated

This is all pretty ugly. For all these tests, let's go with the style we typically use: parser = DiffXParser( …

chipx86chipx86
chipx86
  1. 
      
  2. reviewboard/diffviewer/tests/test_diffx_parser.py (Diff revision 1)
     
     
     
     
     
     
     
    Show all issues

    This is all pretty ugly. For all these tests, let's go with the style we typically use:

    parser = DiffXParser(
        data=(
            b'...'
            b'...'
        ),
        ...
    )
    

    or

    parser = DiffXParser(data=(
        b'...'
        b'...'
    )
    
  3. 
      
david
Review request changed
Commits:
Summary ID
Update tests for DiffParser kwargs change.
A recent(ish) change made it so the args to DiffParser and friends are keyword-only. This was causing a bunch of warnings to pop up when running the tests. Testing Done: Ran unit tests and saw no relevant warnings.
3f76955f49a1fc4bdcdff2e78e3be000cfaf726e
Update tests for DiffParser kwargs change.
A recent(ish) change made it so the args to DiffParser and friends are keyword-only. This was causing a bunch of warnings to pop up when running the tests. Testing Done: Ran unit tests and saw no relevant warnings.
6a4a57ac566cb1097415a3edd84ac352571d2cf6

Checks run (2 succeeded)

flake8 passed.
JSHint passed.