Skip to content

Commit

Permalink
AUT-2429: adding test
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleJono committed Dec 6, 2024
1 parent 011a4ca commit 1c0757f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions authsignal/client_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,22 @@ def test_get_action_with_bad_secret(self):
"AuthsignalException: 401 - The request is unauthorized. Check that your API key and region base URL are correctly configured.",
)

def test_track_without_attributes(self):
client = AuthsignalClient(
api_secret_key=self.test_config["api_secret_key"],
api_url=self.test_config["api_url"],
)

track_response = client.track(
user_id="user123",
action="python-sdk-test",
)

# Verify basic response structure
self.assertEqual(track_response["state"], "CHALLENGE_REQUIRED")
self.assertTrue(track_response.get("idempotency_key"))
self.assertIsNotNone(track_response.get("token"))


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

0 comments on commit 1c0757f

Please sign in to comment.