Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-248

Use Mock with specs in client tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • None
    • 0.8.0
    • Client
    • Twitter Aurora Q4 Sprint 2, Twitter Aurora Q4 Sprint 3

    Description

      While investigating AURORA-247, figured out that none of our tests is capable of catching unknown options due to spec-less way options are mocked. Use Mock(spec=['option1', 'option2', ...]) instead of Mock() everywhere in client tests to prevent issues like AURORA-247.

      Attachments

        Activity

          People

            davmclau David McLaughlin
            maximk Maxim Khutornenko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: