And I wanted to display the number of call count which is an attribute of MagicMock object.
expected_message = Operator.Dsl.Message(
'a mock that has been called {value} times',
'a mock that has not been called {value} times',
)
subject_message = Operator.Dsl.Message(
'a mock that has been called {%call_count%} times',
'a mock that has not been called {%call_count%} times',
)
When {value} is used in subject_message it prints the repr() value
I propose this because I'm doing custom operator to wrap unit test mocks assertions.
And I wanted to display the number of call count which is an attribute of MagicMock object.
When
{value}
is used insubject_message
it prints therepr()
value