Filament/vendor find by ext id + integration tests
This commit is contained in:
8
tests_integration/tests/vendor/test_add.py
vendored
8
tests_integration/tests/vendor/test_add.py
vendored
@@ -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,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user