Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaykannan21 committed May 1, 2024
1 parent d54689f commit 6a4d640
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions test/test_bin/test_autoleaver.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import requests
import unittest
from unittest.mock import patch

class LeaverProcess:
def __init__(self,name):
self.name =name
self.headers = {'Authorization': 'token'}

def revoke_operations_engineering_access(self, github_username, one_password_email):
# Use GitHub API to remove user from organisations
github_api_url = "https://api.github.com/orgs/MOJ/memberships/" + github_username
Expand All @@ -14,6 +19,7 @@ def revoke_operations_engineering_access(self, github_username, one_password_ema
#
def process_leaver(self, github_username, one_password_email):
self.revoke_operations_engineering_access(github_username, one_password_email)


class TestLeaverprocess(unittest.TestCase):
def setup(self):
Expand All @@ -22,13 +28,10 @@ def setup(self):
def test_revoke_operations_engineering_access(self):
# Test to revoke_operational_engineering_access method
# placeholder as the actual test will depend

def test_process_leaver(self):
# Test the process_leaver method
# This is a placeholder actual test will depend on implementation

if __name__ == "__main__":
unittest.main()



unittest.main()

0 comments on commit 6a4d640

Please sign in to comment.