NB
Size: a a a
NB
EB
NB
EB
NB
VQ
MG
class SomeModel(django...Model):И есть юниттест
name = models.TextField(default='')
from unittest.mock import patchПолучаю в ответе 0
class TestSomeModel(TestCase):
@patch('path.to.model.SomeModel')
def test_some_model(self, SomeModelMock):
self.client.get('url/to/get/some/jsons')
print(SomeModelMock.call_count)
EB
ИС
class SomeModel(django...Model):И есть юниттест
name = models.TextField(default='')
from unittest.mock import patchПолучаю в ответе 0
class TestSomeModel(TestCase):
@patch('path.to.model.SomeModel')
def test_some_model(self, SomeModelMock):
self.client.get('url/to/get/some/jsons')
print(SomeModelMock.call_count)
MG
S
СС
SV
СС
SV
СС
ТЭ
BK
ТЭ