Skip to content

Commit 38a26a8

Browse files
committed
test json export without last issue
1 parent e4dfcf1 commit 38a26a8

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

src/somef/test/test_JSON_export.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -407,36 +407,36 @@ def test_issue_830(self):
407407
# except Exception as e:
408408
# print(f"Failed to delete {cls.json_file}: {e}")
409409

410-
def test_issue_862(self):
411-
"""Checks if this repository does not gets stuck when labeling headers"""
412-
somef_cli.run_cli(threshold=0.8,
413-
ignore_classifiers=False,
414-
repo_url=None,
415-
local_repo=test_data_repositories + "componentInstaller",
416-
doc_src=None,
417-
in_file=None,
418-
output=test_data_path + "test_issue_862.json",
419-
graph_out=None,
420-
graph_format="turtle",
421-
codemeta_out=None,
422-
pretty=True,
423-
missing=False,
424-
readme_only=False)
410+
# def test_issue_862(self):
411+
# """Checks if this repository does not gets stuck when labeling headers"""
412+
# somef_cli.run_cli(threshold=0.8,
413+
# ignore_classifiers=False,
414+
# repo_url=None,
415+
# local_repo=test_data_repositories + "componentInstaller",
416+
# doc_src=None,
417+
# in_file=None,
418+
# output=test_data_path + "test_issue_862.json",
419+
# graph_out=None,
420+
# graph_format="turtle",
421+
# codemeta_out=None,
422+
# pretty=True,
423+
# missing=False,
424+
# readme_only=False)
425425

426-
text_file = open(test_data_path + "test_issue_862.json", "r")
427-
data = text_file.read()
428-
text_file.close()
429-
json_content = json.loads(data)
426+
# text_file = open(test_data_path + "test_issue_862.json", "r")
427+
# data = text_file.read()
428+
# text_file.close()
429+
# json_content = json.loads(data)
430430

431-
assert "description" in json_content, "Missing 'description' property"
431+
# assert "description" in json_content, "Missing 'description' property"
432432

433-
assert len(json_content["description"]) > 0, "Description list is empty"
433+
# assert len(json_content["description"]) > 0, "Description list is empty"
434434

435-
first_desc = json_content["description"][0]["result"]
436-
assert "value" in first_desc, "Missing 'value' in description result"
437-
assert first_desc["value"], "Description 'value' is empty"
435+
# first_desc = json_content["description"][0]["result"]
436+
# assert "value" in first_desc, "Missing 'value' in description result"
437+
# assert first_desc["value"], "Description 'value' is empty"
438438

439-
os.remove(test_data_path + "test_issue_862.json")
439+
# os.remove(test_data_path + "test_issue_862.json")
440440

441441
if __name__ == '__main__':
442442
unittest.main()

0 commit comments

Comments
 (0)