Confusing fail reasons

Offen
#22 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
jupyter-notebook, python
Bereich
testing

Rechercherichtung

Start with tests/test_issues/test_issue_20.py, which the issue identifies as the source of the confusing failure reasons. Trace how that test produces and reports the listed messages, then check whether the reasons can be made clearer without changing the underlying failure behavior. Done means the test reports clearer failure reasons; the issue gives no expected wording.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

The fail reasons for test_issue_20.py are confusing:

2 triples cannot be partitioned into {0,1} passing groups
  1 triples exceeds max {0,0}
2 triples cannot be partitioned into {0,*} passing groups
  2 triples exceeds max {1,1}
  2 triples exceeds max {1,1}
  Predicate mismatch: http://hl7.org/fhir/hasLocation ≠ http://hl7.org/fhir/hasMethod
  Node: http://example.org/ex/invasive not in value set:
	 {"values": ["http://example.org/ex/non-invasive"], "type": "...
  Predicate mismatch: http://hl7.org/fhir/hasMethod ≠ http://hl7.org/fhir/hasLocation
  Node: http://example.org/ex/invasive not in value set:
	 {"values": ["http://example.org/ex/non-invasive"], "type": "...
  Predicate mismatch: http://hl7.org/fhir/hasMethod ≠ http://hl7.org/fhir/hasLocation
  2 triples exceeds max {1,1}
  2 triples exceeds max {1,1}
  No matching triples found for predicate http://hl7.org/fhir/hasMethod
  No matching triples found for predicate http://hl7.org/fhir/hasLocation
Vorherrschende Sprache
Jupyter Notebook
Sterne
29
Forks
16
Ø Merge
20 Std. 57 Min.
Gemergte PRs (30 T.)
9

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus linkml/PyShEx

Alle Issues in linkml/PyShEx

Ähnliche Issues

Weitere Issues zu Testing & QA

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.