Confusing fail reasons

Aberta
#22 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
jupyter-notebook, python
Domínio
testing

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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
Linguagem predominante
Jupyter Notebook
Estrelas
29
Forks
16
Merge médio
20h 57min
PRs com merge (30d)
9

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de linkml/PyShEx

Todas as issues de linkml/PyShEx

Issues semelhantes

Mais issues de Testing & QA

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.