pytest-frappe

A set of pytest fixtures to test Frappe applications

MIT License

Downloads
363
Stars
10
pytest-frappe - 0.2.4 Latest Release

Published by 0xsirsaif 12 months ago

  • Only Run Tests in test sites, sites that allow_tests
  • Improve get_current_site function
pytest-frappe - 0.1.3

Published by 0xsirsaif about 1 year ago

  • 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
pytest-frappe - Version 0.1.2

Published by 0xsirsaif over 1 year ago

  • Adding the '--site=' option will allow users to connect to a certain site.
pytest-frappe - Version 0.1.0

Published by 0xsirsaif over 1 year ago

A set of pytest fixtures to test Frappe applications

Package Rankings
Top 18.78% on Pypi.org