Releases: 0xsirsaif/pytest-frappe
Releases · 0xsirsaif/pytest-frappe
0.2.4
0.1.3
FrappeMockedDB
class to mockfrappe.db
object methods
from pytest_frappe import FrappeMockedDB
def test_function(monkeypatch):
def _mock_get_single_value(*args, **kwargs):
return False
monkeypatch.setattr(frappe, "db", FrappeMockedDB({"get_single_value": _mock_get_single_value}))
assert True
Version 0.1.2
- Adding the '--site=' option will allow users to connect to a certain site.
Version 0.1.0
A set of pytest fixtures to test Frappe applications