From e024e6e1ce318f096f29c3a7a44c706d8146357d Mon Sep 17 00:00:00 2001 From: SimonLab Date: Tue, 17 May 2022 11:05:55 +0100 Subject: [PATCH] Test create org with options when creating a new org we can pass a keyword list options --- test/gitea_test.exs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/gitea_test.exs b/test/gitea_test.exs index c56abe5..1c28c21 100644 --- a/test/gitea_test.exs +++ b/test/gitea_test.exs @@ -50,6 +50,18 @@ defmodule GiteaTest do assert response_delete.status_code == 204 end + test "remote_org_create\2 create a new organistaion with options" do + org_name = "new_org2" + + {:ok, response} = + Gitea.remote_org_create(org_name, description: "org desc", visibility: "public") + + assert response.username + # delete organisation to allow test to run again + {:ok, response_delete} = Gitea.remote_org_delete(org_name) + assert response_delete.status_code == 204 + end + test "remote_repo_create/3 creates a new repo on the gitea server" do org_name = "myorg" repo_name = test_repo()