Skip to content

Commit 4ca8981

Browse files
authored
Add API fix (#36)
1 parent 28d7d52 commit 4ca8981

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "Inofficial OWASP Dependency Track CLI"
99
readme = "README.md"
1010
requires-python = ">=3.13"
1111
dependencies = [
12-
"owasp-dependency-track-client==4.13.6",
12+
"owasp-dependency-track-client==4.13.7",
1313
"is_empty==1.0.1",
1414
"tinystream==0.1.18",
1515
"tabulate==0.9.0",

test/test_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
from owasp_dt.api.project import get_projects, get_project
1818
from owasp_dt.api.violation import get_violations_by_project, get_violations
1919
from owasp_dt.api.vulnerability import get_all_vulnerabilities
20-
from owasp_dt.models import UploadBomBody, IsTokenBeingProcessedResponse, ConfigProperty, ConfigPropertyPropertyType, Policy, PolicyViolationState, PolicyCondition, PolicyConditionSubject, PolicyConditionOperator, License, ProjectProperty, ProjectPropertyPropertyType
20+
from owasp_dt.models import UploadBomBody, IsTokenBeingProcessedResponse, ConfigProperty, ConfigPropertyPropertyType, \
21+
Policy, PolicyViolationState, PolicyCondition, PolicyConditionSubject, PolicyConditionOperator, License, \
22+
ProjectProperty, ProjectPropertyPropertyType, PolicyOperator
2123
from owasp_dt.types import UNSET
2224
from tinystream import Opt
2325

@@ -169,6 +171,7 @@ def test_create_test_policy(client: owasp_dt.Client):
169171
uuid="",
170172
name="Forbid MIT license",
171173
violation_state=PolicyViolationState.FAIL,
174+
operator=PolicyOperator.ANY,
172175
)
173176
resp = create_policy.sync_detailed(client=client, body=policy)
174177
if resp.status_code == 409:

0 commit comments

Comments
 (0)