test : add unit tests for _now_iso helper in platform_resources

Abierto
#2,419 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

  • #2424 de @tmdeveloper007 — cerrado sin fusionar

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
fastapi, python
Área
backend, testing

Línea de trabajo

Find the existing test file for platform_resources and locate the _now_iso helper and its module path, which are missing from the issue text. Add tests for a string result, valid timezone-aware ISO 8601 formatting, and proximity to the current time. The issue says a closed, unmerged pull request is linked, so check that work before starting; done means all three behaviors are covered by passing tests.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Summary of What Needs to be Done:
Add unit tests for the helper function in . This function returns the current UTC time as an ISO 8601 formatted string.

The existing test file covers , , , and but explicitly does NOT cover .

Changes that Need to be Made:
Create a new test section in (or add to an existing section) for :

  • Import from
  • Test that it returns a string
  • Test that it returns a valid ISO 8601 formatted datetime string (with timezone info)
  • Test that the returned value is close to the current time (within a few seconds)

Impact that it would Provide:

  • Tests that produces correctly formatted, timezone-aware timestamps
  • Ensures the helper can be used reliably for timestamping in database operations

Note: This task is being handled by tmdeveloper007 — please assign to that account when picking it up.

Lenguaje dominante
Python
Estrellas
36
Forks
234
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de utksh1/SecuScan

Todos los issues de utksh1/SecuScan

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.