-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
In the test here it would be nice if we change the code to include class State and its properties and class Court and its properties.
import courtbot
def test_has_properties():
state = courtbot.get_state("OK")
assert state.courts, ['Tulsa County Court', 'Owasso County Court'] # names of the courts
assert state.supported_locations, {'county': ['Tulsa', 'Owasso']} # names of the counties
court = state.courts.get_court('Tulsa') # county or court name
assert court.name, 'Tulsa County Court'
assert court.case_identifier, {'def' : ['county', 'division', 'docket'] 'example': 'burlington_criminal_1234', 'recipe': '{county}_{division}_{docket}'}
case = court.get_case('tulsa-CF-2020-1')
assert case.events
Metadata
Metadata
Assignees
Labels
No labels