Child Class from MagicMock object has weird spec='str' and can't use or mock methods of the class
Child Class from MagicMock object has weird spec='str' and can't use or mock methods of the class Question: When a class is created deriving from a MagicMock() object it has an unwanted spec=’str’. Does anyone know why this happens? Does anyone know any operations that could be done to the MagicMock() object in this case …