Private
Public Access
añadidos tests y hecho workflow de testing
Signed-off-by: fede <federico.nicolas.polidoro@gmail.com>
This commit is contained in:
1 parent
1e74e4363e
commit
37f1741a77
12 files changed
+391
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package stock
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
ctrl "repuestera_back/controllers/stock"
|
||||
)
|
||||
|
||||
func TestObtenerReservas_Integracion(t *testing.T) {
|
||||
context, recorder := newIntegrationContext(t, "GET", "/stock/reservas", nil, nil)
|
||||
ctrl.ObtenerReservas(context)
|
||||
if recorder.Code != 200 {
|
||||
t.Fatalf("obtener reservas: esperado 200, obtenido %d: %s", recorder.Code, recorder.Body.String())
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user