Pytest-frappe

Latest version: v0.2.5

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

Scan your dependencies

0.2.4

- Only Run Tests in test sites, sites that `allow_tests`
- Improve `get_current_site` function

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.