示例#1
0
def test_site_wicourts(config_path, headless):
    # Add captcha key to test config file in order to
    # test automatic lookup of CAPTCHA api key
    update_test_configs(config_path,
                        {"captcha_service_api_key": CAPTCHA_API_KEY})
    site = Site("wi_green_lake")
    case_numbers = ["2021CV000055"]
    results = site.search(case_numbers=case_numbers, headless=headless)
    assert len(results) == 1
示例#2
0
def test_site_ok():
    site = Site("ok_tulsa")
    case_numbers = ["CJ-2021-1904"]
    results = site.search(case_numbers=case_numbers)
    assert len(results) == 1
示例#3
0
def test_site(place_id, site_class):
    site = Site(place_id)
    assert site.__class__.__name__ == site_class
示例#4
0
def test_site_odyssey(headless):
    site = Site("ca_napa", headless=headless)
    case_numbers = ["20CV000569"]
    results = site.search(case_numbers)
    assert len(results) == 1
示例#5
0
def test_site_ok():
    site = Site('ok_tulsa')
    case_numbers = ['CJ-2021-1904']
    results = site.search(case_numbers=case_numbers)
    assert len(results) == 1