Filament/vendor find by ext id + integration tests

This commit is contained in:
Donkie
2024-05-12 19:57:24 +02:00
parent 4af975d390
commit e4d2ecf0dc
9 changed files with 96 additions and 3 deletions

View File

@@ -12,9 +12,14 @@ def test_add_vendor():
# Execute
name = "John"
comment = "abcdefghåäö"
external_id = "external_id1"
result = httpx.post(
f"{URL}/api/v1/vendor",
json={"name": name, "comment": comment},
json={
"name": name,
"external_id": external_id,
"comment": comment,
},
)
result.raise_for_status()
@@ -27,6 +32,7 @@ def test_add_vendor():
"registered": vendor["registered"],
"name": name,
"comment": comment,
"external_id": external_id,
},
)