Add unit tests for Authomatic.login configuration validation by Prateeksha-ps · Pull Request #261 · authomatic/authomatic · GitHub
Skip to content

Add unit tests for Authomatic.login configuration validation#261

Open
Prateeksha-ps wants to merge 2 commits into
authomatic:masterfrom
Prateeksha-ps:improve-config-validation-tests
Open

Add unit tests for Authomatic.login configuration validation#261
Prateeksha-ps wants to merge 2 commits into
authomatic:masterfrom
Prateeksha-ps:improve-config-validation-tests

Conversation

@Prateeksha-ps

Copy link
Copy Markdown

This PR expands the unit test suite by adding coverage for Authomatic.login configuration validation.

Added tests to verify:

  • ConfigError is raised when provider name is invalid
  • ConfigError is raised when "class_" key is missing from provider config
  • Valid configurations continue to initialize correctly

These tests improve reliability and validate error handling paths in the login flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants