<commit_before>from selene import have
from selene.support.shared import config, browser, SharedConfig


def setup_module():
    config.hold_browser_open = True


def teardown_module():
    config.hold_browser_open = SharedConfig().hold_browser_open


def test_open_browser_with_hold():
    browser.open('http://todomvc.com/examples/emberjs/')

    browser.element('#new-todo').type('a').press_enter()


def test_browser_still_opened():
    browser.element('#new-todo').type('b').press_enter()

    browser.all('#todo-list>li').should(have.texts('a', 'b'))
<commit_msg>add quit browser in tests for shared browser hold_browser_open config #53<commit_after>from selene import have
from selene.support.shared import config, browser, SharedConfig


def setup_module():
    config.hold_browser_open = True


def teardown_module():
    config.hold_browser_open = SharedConfig().hold_browser_open
    browser.quit()


def test_open_browser_with_hold():
    browser.open('http://todomvc.com/examples/emberjs/')

    browser.element('#new-todo').type('a').press_enter()


def test_browser_still_opened():
    browser.element('#new-todo').type('b').press_enter()

    browser.all('#todo-list>li').should(have.texts('a', 'b'))

{'fraction_non_alphanumeric': 0.14626129827444537, 'fraction_numerical': 0.0016433853738701725, 'mean_word_length': 5.37696335078534, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6980660', 'n_tokens_mistral': 410, 'n_tokens_neox': 383, 'n_words': 65}