@@ -15,6 +15,7 @@ def test_github_verify_default():
1515 from githubapi import GitHub
1616
1717 gh = GitHub ()
18+ gh = gh # to avoid unused variable warning
1819
1920 # Verify that session.verify is set to True by default
2021 assert mock_session .verify == True
@@ -30,6 +31,7 @@ def test_github_verify_false():
3031 from githubapi import GitHub
3132
3233 gh = GitHub (verify = False )
34+ gh = gh # to avoid unused variable warning
3335
3436 # Verify that session.verify is set to False
3537 assert mock_session .verify == False
@@ -46,6 +48,7 @@ def test_github_verify_cert_bundle():
4648
4749 cert_path = "/path/to/cert.pem"
4850 gh = GitHub (verify = cert_path )
51+ gh = gh # to avoid unused variable warning
4952
5053 # Verify that session.verify is set to the certificate path
5154 assert mock_session .verify == cert_path
@@ -57,6 +60,7 @@ def test_github_token_required():
5760 with pytest .raises (ValueError , match = "GITHUB_TOKEN environment variable must be set" ):
5861 from githubapi import GitHub
5962 gh = GitHub ()
63+ gh = gh # to avoid unused variable warning
6064
6165
6266def test_github_hostname_validation ():
@@ -65,7 +69,7 @@ def test_github_hostname_validation():
6569 with pytest .raises (ValueError , match = "Invalid server hostname" ):
6670 from githubapi import GitHub
6771 gh = GitHub (hostname = "invalid hostname with spaces" )
68-
72+ gh = gh # to avoid unused variable warning
6973
7074if __name__ == "__main__" :
7175 pytest .main ([__file__ , "-v" ])
0 commit comments