Skip to content

Commit

Permalink
tests: add tests for api diff_packages
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Spooren <mail@aparcar.org>
  • Loading branch information
aparcar committed Apr 20, 2023
1 parent c09f4fa commit 49ae479
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,3 +554,17 @@ def test_api_build_defaults_filled_allowed(app, upstream):
)
assert response.status == "200 OK"
assert response.json.get("request_hash") == "95850740d931c460d77f8de35f298b9a"

def test_api_build_diff_packages(client, upstream):
response = client.post(
"/api/v1/build",
json=dict(
version="TESTVERSION",
target="testtarget/testsubtarget",
profile="testprofile",
packages=["test1", "test2"],
diff_packages=True,
),
)

assert response.status == "200 OK"

0 comments on commit 49ae479

Please sign in to comment.