Skip to content

Make additional class and properties #6

@syk1112

Description

@syk1112

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions