Skip to content
This repository was archived by the owner on Mar 25, 2023. It is now read-only.

Commit e024e6e

Browse files
committed
Test create org with options
when creating a new org we can pass a keyword list options
1 parent fee4d1c commit e024e6e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: test/gitea_test.exs

+12
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ defmodule GiteaTest do
5050
assert response_delete.status_code == 204
5151
end
5252

53+
test "remote_org_create\2 create a new organistaion with options" do
54+
org_name = "new_org2"
55+
56+
{:ok, response} =
57+
Gitea.remote_org_create(org_name, description: "org desc", visibility: "public")
58+
59+
assert response.username
60+
# delete organisation to allow test to run again
61+
{:ok, response_delete} = Gitea.remote_org_delete(org_name)
62+
assert response_delete.status_code == 204
63+
end
64+
5365
test "remote_repo_create/3 creates a new repo on the gitea server" do
5466
org_name = "myorg"
5567
repo_name = test_repo()

0 commit comments

Comments
 (0)