An Elixir toolkit for the AT Protocol. hexdocs.pm/atex
elixir bluesky atproto decentralization
25
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(tests): work around some test flakiness

+7 -1
-1
examples/service_auth.ex
··· 49 49 conn |> send_resp(200, "test") 50 50 end 51 51 52 - # TODO: why did body not validate 53 52 procedure Com.Example.CreatePost, require_auth: true do 54 53 IO.inspect(conn.assigns, label: "createPost") 55 54 conn |> send_resp(200, "test")
+7
test/atex/lexicon_test.exs
··· 14 14 end 15 15 16 16 test "Input submodule exports from_json/1" do 17 + Code.ensure_loaded!(Lexicon.Test.CreatePost.Input) 17 18 assert function_exported?(Lexicon.Test.CreatePost.Input, :from_json, 1) 18 19 end 19 20 ··· 37 38 end 38 39 39 40 test "Output submodule exports from_json/1" do 41 + Code.ensure_loaded!(Lexicon.Test.GetPost.Output) 40 42 assert function_exported?(Lexicon.Test.GetPost.Output, :from_json, 1) 41 43 end 42 44 ··· 64 66 end 65 67 66 68 test "Input submodule exports from_json/1" do 69 + Code.ensure_loaded!(Lexicon.Test.CreateProfile.Input) 67 70 assert function_exported?(Lexicon.Test.CreateProfile.Input, :from_json, 1) 68 71 end 69 72 ··· 89 92 end 90 93 91 94 test "Input submodule exports from_json/1" do 95 + Code.ensure_loaded!(Lexicon.Test.CreateUnion.Input) 92 96 assert function_exported?(Lexicon.Test.CreateUnion.Input, :from_json, 1) 93 97 end 94 98 ··· 118 122 end 119 123 120 124 test "root module exports content_type/0" do 125 + Code.ensure_loaded!(Lexicon.Test.UploadBlob) 121 126 assert function_exported?(Lexicon.Test.UploadBlob, :content_type, 0) 122 127 end 123 128 ··· 138 143 139 144 describe "procedure with JSON input schema" do 140 145 test "Input submodule exports content_type/0" do 146 + Code.ensure_loaded!(Lexicon.Test.CreatePost.Input) 141 147 assert function_exported?(Lexicon.Test.CreatePost.Input, :content_type, 0) 142 148 end 143 149 ··· 156 162 end 157 163 158 164 test "Output submodule exports from_json/1" do 165 + Code.ensure_loaded!(Lexicon.Test.GetUnion.Output) 159 166 assert function_exported?(Lexicon.Test.GetUnion.Output, :from_json, 1) 160 167 end 161 168