def test_search_by_case_id(place_id, case_number, expected): site = Oscn(place_id) results = site.search(case_numbers=[case_number]) assert site.place_id == place_id assert len(results) == 1 case = results[0] assert case.place_id == place_id assert case.number == case_number assert case.html.startswith("<!DOCTYPE") assert case.filing_date == expected["filing_date"] assert case.close_date == expected["close_date"] assert case.type == expected["type"] assert case.judge == expected["judge"]
def test_search_by_case_id_multiple_results(): site = Oscn("ok_tulsa") case_numbers = ["CJ-2021-2045", "CJ-2018-2919"] results = site.search(case_numbers=case_numbers) assert len(results) == 2