Skip to content

Releases: 0xsirsaif/pytest-frappe

0.2.4

29 Oct 17:21
Compare
Choose a tag to compare
  • Only Run Tests in test sites, sites that allow_tests
  • Improve get_current_site function

0.1.3

07 Aug 13:54
Compare
Choose a tag to compare
  • FrappeMockedDB class to mock frappe.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

03 May 17:12
Compare
Choose a tag to compare
  • Adding the '--site=' option will allow users to connect to a certain site.

Version 0.1.0

17 Apr 14:53
Compare
Choose a tag to compare

A set of pytest fixtures to test Frappe applications