diff options
| author | marcin mikołajczak <git@mkljczk.pl> | 2024-03-08 12:12:55 +0100 | 
|---|---|---|
| committer | marcin mikołajczak <git@mkljczk.pl> | 2024-03-08 12:12:55 +0100 | 
| commit | c0c4a9ed0d3cd154de15a8bb0767e2d4e5f4900f (patch) | |
| tree | 0641fb03061bd783a15d06633408da4aa7592e76 /test/mix/tasks | |
| parent | 9fc6676d8c080dbd630434275363cc6536a35116 (diff) | |
| parent | 139057f346f5903e0ed21ea91e7d43fd906fe914 (diff) | |
| download | pleroma-c0c4a9ed0d3cd154de15a8bb0767e2d4e5f4900f.tar.gz pleroma-c0c4a9ed0d3cd154de15a8bb0767e2d4e5f4900f.zip  | |
Merge remote-tracking branch 'origin/develop' into instance-contact-account
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'test/mix/tasks')
| -rw-r--r-- | test/mix/tasks/pleroma/config_test.exs | 5 | ||||
| -rw-r--r-- | test/mix/tasks/pleroma/ecto/rollback_test.exs | 2 | ||||
| -rw-r--r-- | test/mix/tasks/pleroma/robots_txt_test.exs | 2 | 
3 files changed, 4 insertions, 5 deletions
diff --git a/test/mix/tasks/pleroma/config_test.exs b/test/mix/tasks/pleroma/config_test.exs index cf6d74907..7b2134129 100644 --- a/test/mix/tasks/pleroma/config_test.exs +++ b/test/mix/tasks/pleroma/config_test.exs @@ -140,7 +140,6 @@ defmodule Mix.Tasks.Pleroma.ConfigTest do            federating: true,            federation_incoming_replies_max_depth: 100,            federation_reachability_timeout_days: 7, -          federation_publisher_modules: [Pleroma.Web.ActivityPub.Publisher],            allow_relay: true,            public: true,            quarantined_instances: [], @@ -183,8 +182,8 @@ defmodule Mix.Tasks.Pleroma.ConfigTest do        assert File.exists?(temp_file)        {:ok, file} = File.read(temp_file) -      assert file == -               "import Config\n\nconfig :pleroma, :instance,\n  name: \"Pleroma\",\n  email: \"example@example.com\",\n  notify_email: \"noreply@example.com\",\n  description: \"A Pleroma instance, an alternative fediverse server\",\n  limit: 5000,\n  chat_limit: 5000,\n  remote_limit: 100_000,\n  upload_limit: 16_000_000,\n  avatar_upload_limit: 2_000_000,\n  background_upload_limit: 4_000_000,\n  banner_upload_limit: 4_000_000,\n  poll_limits: %{\n    max_expiration: 31_536_000,\n    max_option_chars: 200,\n    max_options: 20,\n    min_expiration: 0\n  },\n  registrations_open: true,\n  federating: true,\n  federation_incoming_replies_max_depth: 100,\n  federation_reachability_timeout_days: 7,\n  federation_publisher_modules: [Pleroma.Web.ActivityPub.Publisher],\n  allow_relay: true,\n  public: true,\n  quarantined_instances: [],\n  managed_config: true,\n  static_dir: \"instance/static/\",\n  allowed_post_formats: [\"text/plain\", \"text/html\", \"text/markdown\", \"text/bbcode\"],\n  autofollowed_nicknames: [],\n  max_pinned_statuses: 1,\n  attachment_links: false,\n  max_report_comment_size: 1000,\n  safe_dm_mentions: false,\n  healthcheck: false,\n  remote_post_retention_days: 90,\n  skip_thread_containment: true,\n  limit_to_local_content: :unauthenticated,\n  user_bio_length: 5000,\n  user_name_length: 100,\n  max_account_fields: 10,\n  max_remote_account_fields: 20,\n  account_field_name_length: 512,\n  account_field_value_length: 2048,\n  external_user_synchronization: true,\n  extended_nickname_format: true,\n  multi_factor_authentication: [\n    totp: [digits: 6, period: 30],\n    backup_codes: [number: 2, length: 6]\n  ]\n" +      assert file =~ "import Config\n" +      assert file =~ "A Pleroma instance, an alternative fediverse server"      end    end diff --git a/test/mix/tasks/pleroma/ecto/rollback_test.exs b/test/mix/tasks/pleroma/ecto/rollback_test.exs index db8641e7f..4036b2da6 100644 --- a/test/mix/tasks/pleroma/ecto/rollback_test.exs +++ b/test/mix/tasks/pleroma/ecto/rollback_test.exs @@ -13,7 +13,7 @@ defmodule Mix.Tasks.Pleroma.Ecto.RollbackTest do      assert capture_log(fn ->               Mix.Tasks.Pleroma.Ecto.Rollback.run(["--env", "test"]) -           end) =~ "[info] Rollback succesfully" +           end) =~ "[info] Rollback successfully"      Logger.configure(level: level)    end diff --git a/test/mix/tasks/pleroma/robots_txt_test.exs b/test/mix/tasks/pleroma/robots_txt_test.exs index 4426fe526..dd6ca9fc8 100644 --- a/test/mix/tasks/pleroma/robots_txt_test.exs +++ b/test/mix/tasks/pleroma/robots_txt_test.exs @@ -26,7 +26,7 @@ defmodule Mix.Tasks.Pleroma.RobotsTxtTest do      assert file == "User-Agent: *\nDisallow: /\n"    end -  test "to existance folder" do +  test "to existing folder" do      path = "test/fixtures/"      file_path = path <> "robots.txt"      clear_config([:instance, :static_dir], path)  | 
