Skip to content

Patches to improve online editing of the Blender manual #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions patches/0001-BLENDER-Blender-ID-goth-provider.patch
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ index 0000000000..2bf4c443d8
+
+ a.Equal(p.ClientKey, os.Getenv("BLENDERID_KEY"))
+ a.Equal(p.Secret, os.Getenv("BLENDERID_SECRET"))
+ a.Equal(p.CallbackURL, "/foo")
+ a.Equal("/foo", p.CallbackURL)
+}
+
+func Test_NewCustomisedURL(t *testing.T) {
Expand Down Expand Up @@ -305,8 +305,8 @@ index 0000000000..2bf4c443d8
+ a.NoError(err)
+
+ s := session.(*blenderid.Session)
+ a.Equal(s.AuthURL, "https://id.blender.org/oauth/authorize")
+ a.Equal(s.AccessToken, "1234567890")
+ a.Equal("https://id.blender.org/oauth/authorize", s.AuthURL)
+ a.Equal("1234567890", s.AccessToken)
+}
+
+func provider() *blenderid.Provider {
Expand Down Expand Up @@ -546,7 +546,7 @@ index 0000000000..ab7fb974a5
+ s.AuthURL = "/foo"
+
+ url, _ := s.GetAuthURL()
+ a.Equal(url, "/foo")
+ a.Equal("/foo", url)
+}
+
+func Test_ToJSON(t *testing.T) {
Expand All @@ -555,7 +555,7 @@ index 0000000000..ab7fb974a5
+ s := &blenderid.Session{}
+
+ data := s.Marshal()
+ a.Equal(data, `{"AuthURL":"","AccessToken":"","RefreshToken":"","ExpiresAt":"0001-01-01T00:00:00Z"}`)
+ a.JSONEq(`{"AuthURL":"","AccessToken":"","RefreshToken":"","ExpiresAt":"0001-01-01T00:00:00Z"}`, data)
+}
+
+func Test_String(t *testing.T) {
Expand Down
Loading