diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-05 15:02:09 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-05 15:02:09 +0200 |
| commit | b6ca97fe994c46737e0aa5c73e8b3d924ddaecd2 (patch) | |
| tree | 76ed491b85468cb5812bf0d7efafe95fa1cf14f7 /strava/strava_test.go | |
| parent | 71c39ed9f8ce3563130cdfc5099e9d7df60845a9 (diff) | |
refactor: Remove obsolete Strava helpers and add mise tasks
Diffstat (limited to 'strava/strava_test.go')
| -rw-r--r-- | strava/strava_test.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/strava/strava_test.go b/strava/strava_test.go index 7120434..fdfa305 100644 --- a/strava/strava_test.go +++ b/strava/strava_test.go @@ -3,7 +3,6 @@ package strava import ( "net/http" "net/http/httptest" - "net/url" "testing" "time" @@ -11,20 +10,6 @@ import ( "github.com/stretchr/testify/require" ) -func TestAuthorizeURL(t *testing.T) { - u := AuthorizeURL("12345", "http://localhost:8787/callback") - parsed, err := url.Parse(u) - require.NoError(t, err) - assert.Equal(t, "https", parsed.Scheme) - assert.Equal(t, "www.strava.com", parsed.Host) - assert.Equal(t, "/oauth/authorize", parsed.Path) - q := parsed.Query() - assert.Equal(t, "12345", q.Get("client_id")) - assert.Equal(t, "http://localhost:8787/callback", q.Get("redirect_uri")) - assert.Equal(t, "code", q.Get("response_type")) - assert.Equal(t, "activity:read_all", q.Get("scope")) -} - func TestExchangeCode(t *testing.T) { server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { err := r.ParseForm() |