Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make additional class and properties #6

Open
syk1112 opened this issue Feb 4, 2021 · 0 comments
Open

Make additional class and properties #6

syk1112 opened this issue Feb 4, 2021 · 0 comments

Comments

@syk1112
Copy link

syk1112 commented Feb 4, 2021

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
@syk1112 syk1112 changed the title Make additional class and properties for the classes Make additional class and properties Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant