Skip to content

Commit

Permalink
test: unit test added for cloud source repo crawler (google#19)
Browse files Browse the repository at this point in the history
Signed-off-by: Sudipto Baral <sudiptobaral.me@gmail.com>
  • Loading branch information
sudiptob2 committed Feb 24, 2023
1 parent 9006b54 commit 95de71e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/gcp_scanner/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,3 +400,14 @@ def test_project_info(self):
"project_info",
)
)

def test_sourcerepos(self):
"""Test list of cloud source repositories in the project."""
# TODO: Enable cloud source repo in the test project
# TODO: Update the sourcerepos file in the test dir
self.assertTrue(
verify(
crawl.list_sourcerepo(PROJECT_NAME, self.credentials),
"sourcerepos",
)
)

0 comments on commit 95de71e

Please sign in to comment.