• 
      

    Refactor extension tests to use less Mock()

    Review Request #7909 — Created Jan. 25, 2016 and submitted

    Information

    Djblets
    release-0.8.x

    Reviewers

    The extension tests now use a ExtensionManager subclass that provides
    the entry points (which are faked via new utility classes,
    FakeEntryPoint, which mocks the entry point, and FakeDistribution,
    which mocks the distribution metadata) at initialization time. This
    allows futher tests of extension managers to be more succinct and
    robust.

    Ran unit tests.

    Description From Last Updated

    Docstring?

    daviddavid
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          djblets/extensions/tests.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          djblets/extensions/tests.py
      
      
    2. 
        
    david
    1. There's some formatting trouble in your description.

    2. djblets/extensions/tests.py (Diff revision 1)
       
       
      Show all issues

      Docstring?

      1. There is one.

      2. I may be behind on my coffee intake for the day.

    3. 
        
    brennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          djblets/extensions/tests.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          djblets/extensions/tests.py
      
      
    2. 
        
    david
    1. Ship It!
    2. 
        
    brennie
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-0.8.x (08b30e6)