`generate_report()` sometimes gives `TypeError: sequence item 0: expected str instance, list found`
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- playwright, python
- Área
- accessibility, testing
Línea de trabajo
Start with tests/test_axe.py at the assert around line 104 and reproduce the failure using uv run --with-requirements tests/requirements.txt pytest tests. Trace generate_report() into __violation_report, where joining node["target"] raises the TypeError. Done means findings print as expected and the test suite passes for reports containing these nodes.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
For some, but not all, reports, I'm seeing this error:
def __violation_report(self, violation: dict, template: Template) -> str:
nodes_str = ""
for num, node in enumerate(violation["nodes"], start=1):
> targets = ", ".join(node["target"])
^^^^^^^^^^^^^^^^^^^^^^^^^
E TypeError: sequence item 0: expected str instance, list found
To Reproduce
Steps to reproduce the behavior:
- check out: https://github.com/pycascades/pycascades-2026/tree/39a2096a0edda50c3161cba6b5be232e87b462a6
uv run --with-requirements tests/requirements.txt pytest tests
Expected behavior
When findings are found, the assert here should print the findings
Logs
As a workaround, I dumped the results here:
results.txt
Additional context
Add any other context about the problem here.
- Lenguaje dominante
- Python
- Estrellas
- 31
- Forks
- 9
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pamelafox/axe-playwright-python
-
Upgrade axePosiblemente ocupada @pamelafox la tomó hace 47 días. Abierto
pamelafox/axe-playwright-python#27 · 1 reacción · 2 asignados ·
Todos los issues de pamelafox/axe-playwright-python
Issues similares
-
fix formatting of the sample database page of the docsPosiblemente ocupada @Aaqibhafeezkhan la tomó hoy. Abiertodocumentation good first issue help wanted
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
chaoss/CollectOSS#544 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area/plugin good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
kestra-io/plugin-soda#137 ·
-
Dificultad 2/5 Medio día Aptitud para principiantes 62/100
ibm-granite/granite.build#504 ·
Los mantenedores suelen responder en 2 días
-
`LazyFrameRemote` and `ExecuteRemote` sinks do not accept `Path`, like `LazyFrame` sinks do.Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día