from aare.common.error_codes import AuthErrorCode, DAQErrorCode, error_code_help, export_error_codes def test_error_code_help_returns_string(): help_text = error_code_help(AuthErrorCode.AUTHENTICATION_FAILED) assert isinstance(help_text, str) assert len(help_text) > 0 def test_error_code_help_unknown_code(): help_text = error_code_help("UNKNOWN_CODE") assert help_text is None def test_export_error_codes_contains_known_codes(): exported = export_error_codes() assert AuthErrorCode.AUTHENTICATION_FAILED.name in exported