Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
henilp105 committed Mar 24, 2024
1 parent e9b2a6a commit 77562bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/tests/test_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ def test_get_existing_package_version(self):
response = self.client.get(
f"/packages/{self.test_namespace_data['namespace']}/{self.test_package_data['package_name']}/0.0.1"
)
print(response.json["message"])
self.assertEqual(200, response.json["code"])

self.assertEqual(200, response.json["code"]) # TODO: Check after fixing : get_package_from_version 608
print("test_get_existing_package_version passed")

def test_package_invalid_license(self):
Expand Down Expand Up @@ -545,6 +545,7 @@ def test_successful_fetch_malicious_reports(self):

access_token = self.login(is_sudo=True) # create a sudo user
response = self.client.get("/report/view",headers={"Authorization": f"Bearer {access_token}"})
print(response.json)
self.assertEqual(200, response.json["code"])
print("test_successful_fetch_malicious_reports passed")

Expand Down

0 comments on commit 77562bc

Please sign in to comment.