feat: Konten umbenennbar, Betrag-Spalte mit Euro im Kopf
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -50,6 +50,18 @@ def test_rules_categorize(client):
|
||||
assert txs[0]["category_id"] == cat["id"]
|
||||
|
||||
|
||||
def test_patch_account_name(client):
|
||||
acc = client.post("/api/accounts", headers=H, json={
|
||||
"bank": "DKB", "iban": "DE71", "name": "DE71", "type": "giro"}).json()
|
||||
r = client.patch(f"/api/accounts/{acc['id']}", headers=H,
|
||||
json={"name": "DKB Giro"})
|
||||
assert r.status_code == 200 and r.json()["name"] == "DKB Giro"
|
||||
assert client.patch("/api/accounts/9999", headers=H,
|
||||
json={"name": "x"}).status_code == 404
|
||||
assert client.patch(f"/api/accounts/{acc['id']}", headers=H,
|
||||
json={"name": " "}).status_code == 422
|
||||
|
||||
|
||||
def test_patch_transaction_category(client):
|
||||
cat = client.post("/api/categories", headers=H, json={"name": "Freizeit"}).json()
|
||||
acc = client.post("/api/accounts", headers=H, json={
|
||||
|
||||
Reference in New Issue
Block a user