Test user validation.
(self, user_manager)
| 169 | assert non_existent is None |
| 170 | |
| 171 | def test_validate_user(self, user_manager): |
| 172 | """Test user validation.""" |
| 173 | user_id = user_manager.create_user("valid_user", UserRole.USER) |
| 174 | |
| 175 | # Valid user |
| 176 | assert user_manager.validate_user(user_id) is True |
| 177 | |
| 178 | # Non-existent user |
| 179 | assert user_manager.validate_user("non_existent") is False |
| 180 | |
| 181 | # Deactivated user |
| 182 | user_manager.delete_user(user_id) |
| 183 | assert user_manager.validate_user(user_id) is False |
| 184 | |
| 185 | def test_list_users(self, user_manager): |
| 186 | """Test listing users.""" |
nothing calls this directly
no test coverage detected