← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1989268] [NEW] Misuse of assert statement

 

Public bug reported:

There is misuse of an assert statement in the master.

https://opendev.org/openstack/glance/src/commit/d7db4e56231059a15d4451c0eaa417c9375162a7/glance/tests/unit/v2/test_image_data_resource.py#L256

       mock_enforce.has_calls(expected_call)

'has_calls' should be 'assert_has_calls'.

** Affects: glance
     Importance: Undecided
     Assignee: Takashi Natsume (natsume-takashi)
         Status: In Progress

** Changed in: glance
     Assignee: (unassigned) => Takashi Natsume (natsume-takashi)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1989268

Title:
  Misuse of assert statement

Status in Glance:
  In Progress

Bug description:
  There is misuse of an assert statement in the master.

  https://opendev.org/openstack/glance/src/commit/d7db4e56231059a15d4451c0eaa417c9375162a7/glance/tests/unit/v2/test_image_data_resource.py#L256

         mock_enforce.has_calls(expected_call)

  'has_calls' should be 'assert_has_calls'.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1989268/+subscriptions



Follow ups