• 
      

    Update tests for DiffParser kwargs change.

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

    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
    maubin
    1. Ship It!
    2. 
        
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-7.x (6686a5e)