<commit_before>*** Settings ***
Suite Setup     Run Tests  ${EMPTY}  test_libraries/module_library.txt
Force Tags      regression  jybot  pybot
Resource        atest_resource.txt

*** Test Cases ***
Passing
    Check Test Case  ${TESTNAME}

Failing
    Check Test Case  ${TESTNAME}

Logging
    ${test} =  Check Test Case  ${TESTNAME}
    Check Log Message  ${test.kws[0].msgs[0]}  Hello from module library
    Check Log Message  ${test.kws[0].msgs[1]}  WARNING!  WARN

Returning
    Check Test Case  ${TESTNAME}

One Argument
    Check Test Case  ${TESTNAME}

Many Arguments
    Check Test Case  ${TESTNAME}

Default Arguments
    Check Test Case  ${TESTNAME}

Variable Arguments
    Check Test Case  ${TESTNAME}

Only Methods And Functions Are Keywords
    Check Test Case  ${TESTNAME}

Class Methods In Module Library Are Not Keywords
    Check Test Case  ${TESTNAME}

Functions starting with underscore are not keywords
    Check Test Case  ${TESTNAME}

If __all__ is present, only functions listed there are available
    Check Test Case  ${TESTNAME} 1
    Check Test Case  ${TESTNAME} 2
    Check Test Case  ${TESTNAME} 3
    Check Test Case  ${TESTNAME} 4
    Keyword should not have been added  join  
    Keyword should not have been added  not_in_all

Class Method Assigned To Module Variable
    Check Test Case  ${TESTNAME}

Lambda Keyword
    Check Test Case  ${TESTNAME}

Lambda Keyword With Arguments
    Check Test Case  ${TESTNAME}

Attribute With Same Name As Module
    Check Test Case  ${TESTNAME}

Importing Submodule As Library
    Check Test Case  ${TESTNAME}

Module Library Scope Should Be Global
    ${lib module path} =  Join Path  ${CURDIR}/../../  testresources/testlibs/module_library
    Check Syslog Contains  Imported library 'module_library' with arguments [ ] (version test, module type, global scope, 12 keywords, source ${lib module path}


***Keywords***

Keyword should not have been added
    [Arguments]  ${kw}  ${lib}=module_lib_with_all
    Check Syslog Contains  Adding keyword '${kw}' to library '${lib}' failed: Not exposed as keyword<commit_msg>fixed test after changing error message slightly<commit_after>*** Settings ***
Suite Setup     Run Tests  ${EMPTY}  test_libraries/module_library.txt
Force Tags      regression  jybot  pybot
Resource        atest_resource.txt

*** Test Cases ***
Passing
    Check Test Case  ${TESTNAME}

Failing
    Check Test Case  ${TESTNAME}

Logging
    ${test} =  Check Test Case  ${TESTNAME}
    Check Log Message  ${test.kws[0].msgs[0]}  Hello from module library
    Check Log Message  ${test.kws[0].msgs[1]}  WARNING!  WARN

Returning
    Check Test Case  ${TESTNAME}

One Argument
    Check Test Case  ${TESTNAME}

Many Arguments
    Check Test Case  ${TESTNAME}

Default Arguments
    Check Test Case  ${TESTNAME}

Variable Arguments
    Check Test Case  ${TESTNAME}

Only Methods And Functions Are Keywords
    Check Test Case  ${TESTNAME}

Class Methods In Module Library Are Not Keywords
    Check Test Case  ${TESTNAME}

Functions starting with underscore are not keywords
    Check Test Case  ${TESTNAME}

If __all__ is present, only functions listed there are available
    Check Test Case  ${TESTNAME} 1
    Check Test Case  ${TESTNAME} 2
    Check Test Case  ${TESTNAME} 3
    Check Test Case  ${TESTNAME} 4
    Keyword should not have been added  join  
    Keyword should not have been added  not_in_all

Class Method Assigned To Module Variable
    Check Test Case  ${TESTNAME}

Lambda Keyword
    Check Test Case  ${TESTNAME}

Lambda Keyword With Arguments
    Check Test Case  ${TESTNAME}

Attribute With Same Name As Module
    Check Test Case  ${TESTNAME}

Importing Submodule As Library
    Check Test Case  ${TESTNAME}

Module Library Scope Should Be Global
    ${lib module path} =  Join Path  ${CURDIR}/../../  testresources/testlibs/module_library
    Check Syslog Contains  Imported library 'module_library' with arguments [ ] (version test, module type, global scope, 12 keywords, source ${lib module path}


***Keywords***

Keyword should not have been added
    [Arguments]  ${kw}  ${lib}=module_lib_with_all
    Check Syslog Contains  Adding keyword '${kw}' to library '${lib}' failed: Not exposed as a keyword
{'fraction_non_alphanumeric': 0.07530191806772436, 'fraction_numerical': 0.004735969689793985, 'mean_word_length': 3.5128205128205128, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3861157', 'n_tokens_mistral': 1238, 'n_tokens_neox': 1205, 'n_words': 510}