def patch_execute(query):
print('TEST')
return query
@pytest.mark.django_db
def test_publisher_intensity2(monkeypatch):
monkeypatch.setattr(apps.stats.reports.queries, 'execute', patch_execute)
publisher_id = 1
query = publisher_intensity2(
#
publisher_id,
date_from,
date_to,
)
assert query == ""