With MagicMock we can emulate the behavior of a Django File through its spec parameter. How to unit test a Django CreateView with a FileField.
確定! 回上一頁