schema icon indicating copy to clipboard operation
schema copied to clipboard

Example Usage - Test Error

Open vijayatgithub opened this issue 9 years ago • 0 comments

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.

vijayatgithub avatar Jan 11 '17 12:01 vijayatgithub