sms completed
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
func loadToken(t *testing.T) string {
|
||||
@@ -28,3 +30,22 @@ func TestSMS(t *testing.T) {
|
||||
"Привет",
|
||||
)
|
||||
}
|
||||
|
||||
func TestSMSWait(t *testing.T) {
|
||||
token := loadToken(t)
|
||||
trID, err := SendSMSWait(token, "+79857770038", "NG.Market", "Привет из Москвы :)")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(trID)
|
||||
}
|
||||
|
||||
func TestStatus(t *testing.T) {
|
||||
token := loadToken(t)
|
||||
id, _ := uuid.Parse("9987bf00-c082-4dec-b25f-875eb528cf34")
|
||||
status, err := RequestStatus(id, token)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(status)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user