robproject / fsjd

Git External Diff machinery for Frappe Framework JSON schema
MIT License
8 stars 2 forks source link

Handle Fixtures #14

Closed robproject closed 2 months ago

robproject commented 3 months ago

Description

Fixtures on their own do not follow the same pattern as doctype or customization schema.

Testing

Make changes to a fixture and observe an error like the below. (Workflow State being the example)

Traceback (most recent call last):
  File "/Users/robir/bench/fsjd/frappe_schema_json_diff.py", line 443, in <module>
    diff.print()
  File "/Users/robir/bench/fsjd/frappe_schema_json_diff.py", line 52, in print
    self.tree = self.dict_diff(
                ^^^^^^^^^^^^^^^
  File "/Users/robir/bench/fsjd/frappe_schema_json_diff.py", line 75, in dict_diff
    for bk, bk_v in base_dict.items():
                    ^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'items'