Closed PGijsbers closed 4 days ago
This pull request enhances the test suite for authentication in the OpenML project. It focuses on improving and expanding tests for private dataset access, user roles, and API key handling. The changes primarily affect test files related to datasets, users, and authentication.
classDiagram
class ApiKey {
+str ADMIN
+str SOME_USER
+str OWNER_USER
+str INVALID
}
note for ApiKey "Updated REGULAR_USER to SOME_USER"
Change | Details | Files |
---|---|---|
Refactored and expanded tests for private dataset access |
|
tests/routers/openml/migration/datasets_migration_test.py tests/routers/openml/datasets_test.py |
Standardized API key naming conventions |
|
tests/routers/openml/datasets_list_datasets_test.py tests/routers/openml/dataset_tag_test.py tests/routers/openml/users_test.py tests/users.py |
Improved test coverage for different user roles |
|
tests/routers/openml/datasets_test.py tests/routers/openml/datasets_list_datasets_test.py |
Add more tests for authentication
Summary by Sourcery
Enhance test coverage for dataset access by adding parameterized tests for different user roles and standardizing the use of 'SOME_USER' in place of 'REGULAR_USER' across test cases.
Tests: