Skip to content

Commit 49ae479

Browse files
committed
tests: add tests for api diff_packages
Signed-off-by: Paul Spooren <mail@aparcar.org>
1 parent c09f4fa commit 49ae479

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test_api.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,3 +554,17 @@ def test_api_build_defaults_filled_allowed(app, upstream):
554554
)
555555
assert response.status == "200 OK"
556556
assert response.json.get("request_hash") == "95850740d931c460d77f8de35f298b9a"
557+
558+
def test_api_build_diff_packages(client, upstream):
559+
response = client.post(
560+
"/api/v1/build",
561+
json=dict(
562+
version="TESTVERSION",
563+
target="testtarget/testsubtarget",
564+
profile="testprofile",
565+
packages=["test1", "test2"],
566+
diff_packages=True,
567+
),
568+
)
569+
570+
assert response.status == "200 OK"

0 commit comments

Comments
 (0)