Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #130 from snyk-labs/chore/update-pysnyk
Browse files Browse the repository at this point in the history
chore: updated pysnyk packaage to use new projects api
  • Loading branch information
Robthreefold authored Aug 10, 2023
2 parents 5187ec2 + 7b1d1ae commit b3797aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
30 changes: 9 additions & 21 deletions app/tests/test_snyk_scm_refresh.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,10 @@ def organization_url(self, base_url, organization):
type='pip',
readOnly=False,
testFrequency='daily',
totalDependencies=32,
lastTestedDate='2020-07-28T07:15:24.981Z',
browseUrl='https://app.snyk.io/org/scott.esbrandt-ww8' \
'/project/66d7ebef-9b36-464f-889c-b92c9ef5ce12',
issueCountsBySeverity={"low": 8, "high": 13, "medium": 15},
imageTag='0.0.0',
imageId=None,
isMonitored=True
isMonitored=True,
branch='main',
remoteRepoUrl='scotte-snyk/test-project-1'
),
Project(name='scotte-snyk/test-project-1',
organization=TestModels.organization,
Expand All @@ -237,14 +233,10 @@ def organization_url(self, base_url, organization):
type='sast',
readOnly=False,
testFrequency='daily',
totalDependencies=32,
lastTestedDate='2020-07-28T07:15:24.981Z',
browseUrl='https://app.snyk.io/org/scott.esbrandt-ww8' \
'/project/66d7ebef-9b36-464f-889c-b92c9ef5ce12',
issueCountsBySeverity={"low": 8, "high": 13, "medium": 15},
imageTag='0.0.0',
imageId=None,
isMonitored=True
isMonitored=True,
branch='main',
remoteRepoUrl='scotte-snyk/test-project-1'
),
Project(name='scotte-snyk/test-project-2:requirements.txt',
organization=TestModels.organization,
Expand All @@ -254,14 +246,10 @@ def organization_url(self, base_url, organization):
type='npm',
readOnly=False,
testFrequency='daily',
totalDependencies=52,
lastTestedDate='2020-07-28T01:09:27.480Z',
browseUrl='https://app.snyk.io/org/scott.esbrandt-ww8' \
'/project/93b82d1f-1544-45c9-b3bc-86e799c7225b',
issueCountsBySeverity={"low": 8, "high": 13, "medium": 15},
imageTag='1.0.0',
imageId=None,
isMonitored=True
isMonitored=True,
branch='main',
remoteRepoUrl='scotte-snyk/test-project-2'
)
]

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pysnyk==0.9.5
pysnyk==0.9.8
PyGithub==1.47
requests==2.28.0
urllib3==1.26.5

0 comments on commit b3797aa

Please sign in to comment.