- insert(:config,
- group: :pleroma,
- key: :instance,
- value: [
- name: "Pleroma Test"
- ]
- )
-
- insert(:config,
- group: :pleroma,
- key: Pleroma.Captcha,
- value: [
- enabled: false
- ]
- )
-
- _config_before = Repo.all(ConfigDB)
-
- assert config_before = [
- %Pleroma.ConfigDB{
- group: :pleroma,
- key: :instance,
- value: [name: "Pleroma Test"]
- },
- %Pleroma.ConfigDB{
- group: :pleroma,
- key: Pleroma.Captcha,
- value: [enabled: false]
- }
- ]
-
- Mix.Tasks.Pleroma.Config.run(["delete", "--force", "pleroma", "Pleroma.Captcha"])
-
- config_after = Repo.all(ConfigDB)
+ MixTask.run(["delete", "--force", "pleroma", "Pleroma.Captcha"])