Skip to content

Commit f012820

Browse files
authored
Add another check_membership() test that doesn't require authentication (#245)
1 parent c26e1ba commit f012820

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/read_only_api_tests.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ testuser = Owner(testsuite_username)
9797
else
9898
@test GitHub.check_membership(julweb, testuser; auth = auth)
9999
end
100-
101-
@test !GitHub.check_membership("JuliaLang", testuser; auth = auth, public_only=true)
100+
101+
# Some membership tests that only test public membership (and thus the tests don't require authentication)
102+
@test GitHub.check_membership("JuliaLang", Owner("StefanKarpinski"); auth = auth, public_only=true)
103+
@test !GitHub.check_membership("JuliaLang", Owner("julia-github-test-bot2"); auth = auth, public_only=true)
102104

103105
@test GitHub.isorg(julweb)
104106
@test !GitHub.isorg(testuser)

0 commit comments

Comments
 (0)