Skip to content

Example Usage - Test Error #1

@vijayatgithub

Description

@vijayatgithub

Defined the source and candidate paths as below for testing. Is this correct?

source_path = schema.Path().add_node(mobile)
candidate_paths = [schema.Path().add_node(mobile), handset]

Error received is provided below for your reference.

Traceback (most recent call last):
File "schema_test.py", line 12, in
keypathgen = schema.KeyPathGenerator(source_path, candidate_paths)
File "/home/developer/Desktop/Analysis/schema/schema/schema.py", line 266, in init
self._key_source_path(source_path)
File "/home/developer/Desktop/Analysis/schema/schema/schema.py", line 276, in _key_source_path
if a.key is None:
AttributeError: 'str' object has no attribute 'key'

Could you find how to pass the source pah and candidate path. Need sample program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions