Skip to content

Commit

Permalink
Check for non empty, not non null auth token.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Jan 1, 2024
1 parent 8737e85 commit 428d127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_hookee_manager_edges.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TestHookeeManagerEdges(HookeeTestCase):
def test_not_click_logging(self):
self.assertFalse(self.config.click_logging)

@unittest.skipIf("NGROK_AUTHTOKEN" not in os.environ, "NGROK_AUTHTOKEN environment variable not set")
@unittest.skipIf(not os.environ.get("NGROK_AUTHTOKEN"), "NGROK_AUTHTOKEN environment variable not set")
def test_hookee_manager(self):
# GIVEN
hookee_manager = HookeeManager()
Expand All @@ -36,7 +36,7 @@ def test_hookee_manager(self):
self.assertIsNone(hookee_manager.server._thread)
self.assertIsNone(hookee_manager.tunnel._thread)

@unittest.skipIf("NGROK_AUTHTOKEN" not in os.environ, "NGROK_AUTHTOKEN environment variable not set")
@unittest.skipIf(not os.environ.get("NGROK_AUTHTOKEN"), "NGROK_AUTHTOKEN environment variable not set")
def test_custom_response(self):
# GIVEN
response_body = "<Response>Ok</Response>"
Expand Down

0 comments on commit 428d127

Please sign in to comment.