Pytest-frappe

Latest version: v0.2.4

Safety actively analyzes 623282 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.1.3

- `FrappeMockedDB` class to mock `frappe.db` object methods

python
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

0.1.2

- Adding the '--site=' option will allow users to connect to a certain site.

0.1.0

A set of pytest fixtures to test Frappe applications

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.