siga

Sistema Interativo de GerĂȘncia de Atividades.
Log | Files | Refs | README | LICENSE

test.exs (1054B)


      1 import Config
      2 
      3 # Configure your database
      4 #
      5 # The MIX_TEST_PARTITION environment variable can be used
      6 # to provide built-in test partitioning in CI environment.
      7 # Run `mix help test` for more information.
      8 config :users, Users.Repo,
      9   database: Path.expand("../users_test.db", __DIR__),
     10   pool_size: 5,
     11   pool: Ecto.Adapters.SQL.Sandbox
     12 
     13 # We don't run a server during test. If one is required,
     14 # you can enable the server option below.
     15 config :users, UsersWeb.Endpoint,
     16   http: [ip: {127, 0, 0, 1}, port: 4002],
     17   secret_key_base: "RkNflWf8t1qfz56I7hDhjmpZ11LFrgep/RqKCA+hk9O8EGRz4vSjTJOjmJZXaIDE",
     18   server: false
     19 
     20 # Print only warnings and errors during test
     21 config :logger, level: :warning
     22 
     23 # Initialize plugs at runtime for faster test compilation
     24 config :phoenix, :plug_init_mode, :runtime
     25 
     26 # Sort query params output of verified routes for robust url comparisons
     27 config :phoenix,
     28   sort_verified_routes_query_params: true
     29 
     30 # Requests to the auth service are answered by Req.Test stubs.
     31 config :users, :auth_req_options, plug: {Req.Test, Users.Auth}