Skip to content

Commit

Permalink
fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Mar 6, 2024
1 parent 0e341d3 commit 9fab06f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ez_wikidata/__init__.py
@@ -1 +1 @@
__version__ = "0.1.3"
__version__ = "0.1.4"
3 changes: 1 addition & 2 deletions ez_wikidata/wikidata.py
Expand Up @@ -51,8 +51,7 @@ def qid(self)->str:
@property
def pretty_item_json(self,indent:int=2) -> str:
"""Returns a pretty-printed JSON string of the item."""
json_str = self.item.get_json() # Assuming get_json() returns a JSON string representation of the item
item_dict = json.loads(json_str)
item_dict = self.item.get_json() # Assuming get_json() returns a JSON string representation of the item
pretty_json=json.dumps(item_dict, indent=indent)
return pretty_json

Expand Down
1 change: 1 addition & 0 deletions tests/test_wikidata.py
Expand Up @@ -331,6 +331,7 @@ def test_add_record(self):
BaseTest.inPublicCI(),
"Tests creating and modifying items. To run in CI setup credentials",
)

def test_addDict(self):
"""
test addDict
Expand Down

0 comments on commit 9fab06f

Please sign in to comment.